--- git-daemon.initd 2010-01-25 14:07:33.000000000 -0500 +++ git-daemon.initd.new 2010-01-25 14:16:56.000000000 -0500 @@ -5,13 +5,18 @@ PIDFILE=/var/run/git-daemon.pid +# Check for OpenRC/Baselayout 2 - see bug #270646 +is_openrc() { + [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ] +} + depend() { need net use logger } start() { - [ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon" + is_openrc || BL1_COMPAT="--name git-daemon" ebegin "Starting git-daemon" start-stop-daemon --start --quiet --background \ --pidfile ${PIDFILE} ${BL1_COMPAT} \