summaryrefslogtreecommitdiff
blob: 9b0748af3119c00fbfac8e112fd4430534a5c564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/runscript

depend() {
	need net
	need localmount
	after bootmisc
}

start() {
	ebegin "Starting Murmur voice chat server"
	start-stop-daemon --start --make-pidfile --pidfile /var/run/murmur.pid \
		--chuid $MURMUR_USER --env HOME=$MURMUR_HOMEDIR \
		--exec /usr/bin/murmur -- -ini $MURMUR_CONFDIR/murmur.ini &> $MURMUR_LOGFILE &
	eend $?
}

stop() {
	ebegin "Stopping Murmur voice chat server"
	start-stop-daemon --stop --exec /usr/bin/murmur \
		--pidfile /var/run/murmur.pid
	eend $?
	#rm /var/run/murmur.pid
}

#restart() {
#  #(Commands necessary to restart the service)
#}