diff options
Diffstat (limited to 'net-misc/sobby/files/sobby-init-0.4.7')
-rwxr-xr-x | net-misc/sobby/files/sobby-init-0.4.7 | 22 |
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..a5ab6eecb0e6 --- /dev/null +++ b/net-misc/sobby/files/sobby-init-0.4.7 @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use avahi +} + +start() { + ebegin "Starting obby dedicated server" + start-stop-daemon -b --quiet --start --make-pidfile \ + --pidfile /var/run/sobby.pid -u ${SOBBY_USER} -g ${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" +} |