summaryrefslogtreecommitdiff
blob: a5ab6eecb0e660e98df877210b2579d562e2f304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
}