forked-daapd stablelized.

download from webgit still sucks!
This commit is contained in:
Micha Glave
2010-06-29 10:53:19 +02:00
parent 042411ad1d
commit 82405e6cbe
3 changed files with 19 additions and 32 deletions

View File

@@ -2,31 +2,13 @@
# 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 $
# Somehow based on init.d file shipped with forked-daapd itself.
#
# You can run multiple copies of this service just symlinking them to
# forked-daapd.<name>, then it will load /etc/forked-daapd.d/<name>.conf as config
# file.
# Remember to give them different logs and cache directories.
#
# The main instance (with no <name>) uses /etc/forked-daapd.conf
# Check for OpenRC/Baselayout 2 -- see bug #230917
if [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]; then
myservice=$RC_SVCNAME
fi
CONF="${myservice##*.}"
if [[ -n ${CONF} && ${myservice} != "forked-daapd" ]]; then
PIDFILE="/var/run/forked-daapd.${CONF}.pid"
CONFFILE="/etc/forked-daapd.d/${CONF}.conf"
else
PIDFILE="/var/run/forked-daapd.pid"
CONFFILE="/etc/forked-daapd.conf"
fi
PIDFILE="/var/run/forked-daapd.pid"
CONFFILE="/etc/forked-daapd.conf"
depend() {
need net
need net avahi-daemon
}
start() {