summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Parpart <trapni@gentoo.org>2008-10-04 07:38:26 +0000
committerChristian Parpart <trapni@gentoo.org>2008-10-04 07:38:26 +0000
commitff5d312f5c1a4c219c771cbb5d957757ce0688b6 (patch)
treed3cde5bf98c5a9482c6d2ae8bede71420d16e0dc /games-rpg/mangos/files
parentStable for amd64 (diff)
downloadgentoo-2-ff5d312f5c1a4c219c771cbb5d957757ce0688b6.tar.gz
gentoo-2-ff5d312f5c1a4c219c771cbb5d957757ce0688b6.tar.bz2
gentoo-2-ff5d312f5c1a4c219c771cbb5d957757ce0688b6.zip
initial import
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo x86_64)
Diffstat (limited to 'games-rpg/mangos/files')
-rwxr-xr-xgames-rpg/mangos/files/9999/mangos-realmd23
-rwxr-xr-xgames-rpg/mangos/files/9999/mangos-worldd23
2 files changed, 46 insertions, 0 deletions
diff --git a/games-rpg/mangos/files/9999/mangos-realmd b/games-rpg/mangos/files/9999/mangos-realmd
new file mode 100755
index 000000000000..cb1dc11deffb
--- /dev/null
+++ b/games-rpg/mangos/files/9999/mangos-realmd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/files/9999/mangos-realmd,v 1.1 2008/10/04 07:38:26 trapni Exp $
+
+depend() {
+ need net
+ use mysql
+}
+
+start() {
+ ebegin "Starting MaNGOS Login Server (realmd)"
+ start-stop-daemon --start --background -c mangos --exec /usr/share/mangos/bin/mangos-realmd \
+ --make-pidfile --pidfile /var/run/mangos/realm.pid -- -c /etc/mangos/realmd.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping MaNGOS Login Server (realmd)"
+ start-stop-daemon --stop -c mangos --exec /usr/share/mangos/bin/mangos-realmd \
+ --pidfile /var/run/mangos/realm.pid
+ eend $?
+}
diff --git a/games-rpg/mangos/files/9999/mangos-worldd b/games-rpg/mangos/files/9999/mangos-worldd
new file mode 100755
index 000000000000..d7e6143a7d96
--- /dev/null
+++ b/games-rpg/mangos/files/9999/mangos-worldd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/files/9999/mangos-worldd,v 1.1 2008/10/04 07:38:26 trapni Exp $
+
+depend() {
+ need net
+ use net
+}
+
+start() {
+ ebegin "Starting MaNGOS server"
+ start-stop-daemon --start --background -c mangos --pidfile /var/run/mangos/world.pid \
+ --make-pidfile --exec /usr/bin/mangos-worldd -- -c /etc/mangos/mangosd.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping MaNGOS server"
+ start-stop-daemon --stop -c mangos --exec /usr/share/mangos/bin/mangos-worldd \
+ --pidfile /var/run/mangos/world.pid
+ eend $?
+}