--- mt-daapd 2010-01-15 11:31:25.000000000 -0500 +++ mt-daapd.new 2010-01-15 12:27:39.000000000 -0500 @@ -11,6 +11,11 @@ # # The main instance (with no ) uses /etc/mt-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} != "mt-daapd" ]]; then PIDFILE="/var/run/mt-daapd.${CONF}.pid"