Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 273138 | Differences between
and this patch

Collapse All | Expand All

(-)git-daemon.initd (-1 / +6 lines)
Lines 5-17 Link Here
5
5
6
PIDFILE=/var/run/git-daemon.pid
6
PIDFILE=/var/run/git-daemon.pid
7
7
8
# Check for OpenRC/Baselayout 2 - see bug #270646
9
is_openrc() {
10
    [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]
11
}
12
8
depend() {
13
depend() {
9
	need net
14
	need net
10
	use logger
15
	use logger
11
}
16
}
12
17
13
start() {
18
start() {
14
	[ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon"
19
	is_openrc || BL1_COMPAT="--name git-daemon"
15
	ebegin "Starting git-daemon"
20
	ebegin "Starting git-daemon"
16
		start-stop-daemon --start --quiet --background \
21
		start-stop-daemon --start --quiet --background \
17
		--pidfile ${PIDFILE} ${BL1_COMPAT} \
22
		--pidfile ${PIDFILE} ${BL1_COMPAT} \

Return to bug 273138