2010-06-25 13:35:33 +02:00
|
|
|
#!/sbin/runscript
|
|
|
|
# Copyright 1999-2004 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2010-06-25 14:45:01 +02:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/media-sound/forked-daapd/files/forked-daapd.init.2,v 1.4 2010/01/25 16:27:26 patrick Exp $
|
2010-06-25 13:35:33 +02:00
|
|
|
#
|
|
|
|
|
2010-06-29 10:53:19 +02:00
|
|
|
PIDFILE="/var/run/forked-daapd.pid"
|
|
|
|
CONFFILE="/etc/forked-daapd.conf"
|
2010-06-25 13:35:33 +02:00
|
|
|
|
|
|
|
depend() {
|
2010-06-29 10:53:19 +02:00
|
|
|
need net avahi-daemon
|
2010-06-25 13:35:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2010-06-25 14:45:01 +02:00
|
|
|
ebegin "Starting forked-daapd DAAP server"
|
2010-06-25 13:35:33 +02:00
|
|
|
start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
|
2010-06-25 14:45:01 +02:00
|
|
|
--exec /usr/sbin/forked-daapd -- -P ${PIDFILE} -c ${CONFFILE}
|
2010-06-25 13:35:33 +02:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2010-06-25 14:45:01 +02:00
|
|
|
ebegin "Stopping forked-daapd DAAP server"
|
2010-06-25 13:35:33 +02:00
|
|
|
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --signal 2
|
|
|
|
eend $?
|
|
|
|
|
|
|
|
rm -f ${PIDFILE}
|
|
|
|
}
|