Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 293222
Collapse All | Expand All

(-)/etc/init.d/hellanzb (-4 / +5 lines)
Lines 14-22 Link Here
14
		eend 1
14
		eend 1
15
		return 1
15
		return 1
16
	fi
16
	fi
17
	if [ "${RC_CMD}" = "restart" ] ; then
18
		sleep 1 # wait for socket to be released
19
	fi
17
20
18
	export PATH="${PATH}:/opt/bin"
21
        start-stop-daemon --start -c ${HELLA_USER} \
19
        start-stop-daemon --quiet --start -c ${HELLA_USER} \
20
		-g ${HELLA_GROUP} --name hellanzb.py \
22
		-g ${HELLA_GROUP} --name hellanzb.py \
21
                --exec /usr/bin/hellanzb.py -- \
23
                --exec /usr/bin/hellanzb.py -- \
22
                -D -c ${HELLA_CONFIGFILE} ${HELLA_OPTS} &> /dev/null
24
                -D -c ${HELLA_CONFIGFILE} ${HELLA_OPTS} &> /dev/null
Lines 25-32 Link Here
25
27
26
stop() {
28
stop() {
27
	ebegin "Stopping hellanzb"
29
	ebegin "Stopping hellanzb"
28
	start-stop-daemon --quiet --stop \
30
	/usr/bin/hellanzb.py shutdown &> /dev/null
29
		--name hellanzb.py
30
	eend $?
31
	eend $?
31
}
32
}
32
33

Return to bug 293222