summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-06-18 07:50:26 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-06-18 07:50:26 +0000
commit14af01b13ec299f720c693966cca4b6f42b9ca3f (patch)
tree9751fca02815e09dfe964fea26ecc933f13a6fb9 /net-misc/sobby/files/sobby-init-0.4.7
parentRemove old (diff)
downloadhistorical-14af01b13ec299f720c693966cca4b6f42b9ca3f.tar.gz
historical-14af01b13ec299f720c693966cca4b6f42b9ca3f.tar.bz2
historical-14af01b13ec299f720c693966cca4b6f42b9ca3f.zip
Version bump
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'net-misc/sobby/files/sobby-init-0.4.7')
-rwxr-xr-xnet-misc/sobby/files/sobby-init-0.4.722
1 files changed, 22 insertions, 0 deletions
diff --git a/net-misc/sobby/files/sobby-init-0.4.7 b/net-misc/sobby/files/sobby-init-0.4.7
new file mode 100755
index 000000000000..ca3ce994e062
--- /dev/null
+++ b/net-misc/sobby/files/sobby-init-0.4.7
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/sobby/files/sobby-init-0.4.7,v 1.1 2010/06/18 07:50:25 xarthisius Exp $
+
+depend() {
+ use avahi
+}
+
+start() {
+ ebegin "Starting obby dedicated server"
+ start-stop-daemon -b --quiet --start --make-pidfile \
+ --pidfile /var/run/sobby.pid --chuid ${SOBBY_USER}:${SOBBY_GROUP} \
+ --exec /usr/bin/sobby -- ${SOBBY_OPTS}
+ eend $? "Failed to start sobby"
+}
+
+stop() {
+ ebegin "Stopping obby dedicated server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/sobby.pid
+ eend $? "Failed to stop sobby"
+}