82405e6cbe
download from webgit still sucks!
28 lines
699 B
Plaintext
Executable File
28 lines
699 B
Plaintext
Executable File
#!/sbin/runscript
|
|
# Copyright 1999-2004 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $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 $
|
|
#
|
|
|
|
PIDFILE="/var/run/forked-daapd.pid"
|
|
CONFFILE="/etc/forked-daapd.conf"
|
|
|
|
depend() {
|
|
need net avahi-daemon
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting forked-daapd DAAP server"
|
|
start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
|
|
--exec /usr/sbin/forked-daapd -- -P ${PIDFILE} -c ${CONFFILE}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping forked-daapd DAAP server"
|
|
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --signal 2
|
|
eend $?
|
|
|
|
rm -f ${PIDFILE}
|
|
}
|