Lines 1-5
Link Here
|
1 |
#!/sbin/openrc-run |
1 |
#!/sbin/openrc-run |
2 |
# Copyright 1999-2004 Gentoo Foundation |
2 |
# Copyright 1999-2017 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
# $Id$ |
4 |
# $Id$ |
5 |
# Somehow based on init.d file shipped with mt-daapd itself. |
5 |
# Somehow based on init.d file shipped with mt-daapd itself. |
Lines 17-23
if [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]; then
Link Here
|
17 |
fi |
17 |
fi |
18 |
|
18 |
|
19 |
CONF="${myservice##*.}" |
19 |
CONF="${myservice##*.}" |
20 |
if [[ -n ${CONF} && ${myservice} != "mt-daapd" ]]; then |
20 |
if [ -n ${CONF} -a ${myservice} != "mt-daapd" ]; then |
21 |
PIDFILE="/var/run/mt-daapd.${CONF}.pid" |
21 |
PIDFILE="/var/run/mt-daapd.${CONF}.pid" |
22 |
CONFFILE="/etc/mt-daapd.d/${CONF}.conf" |
22 |
CONFFILE="/etc/mt-daapd.d/${CONF}.conf" |
23 |
else |
23 |
else |