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

Collapse All | Expand All

(-)www-apps/trac/files/tracd.initd (-3 / +3 lines)
Lines 1-5 Link Here
1
#!/sbin/runscript
1
#!/sbin/runscript
2
# Copyright 1999-2011 Gentoo Foundation
2
# Copyright 1999-2013 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License, v2 or later
3
# Distributed under the terms of the GNU General Public License, v2 or later
4
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd,v 1.6 2011/12/31 20:17:51 idl0r Exp $
4
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd,v 1.6 2011/12/31 20:17:51 idl0r Exp $
5
5
Lines 13-19 start() { Link Here
13
	# s-s-d to do that. To have correct pid we avoid -d option of tracd and use
13
	# s-s-d to do that. To have correct pid we avoid -d option of tracd and use
14
	# --background option of s-s-d.
14
	# --background option of s-s-d.
15
	start-stop-daemon --start --user ${TRACD_USER:-tracd} --group ${TRACD_GROUP:-tracd} \
15
	start-stop-daemon --start --user ${TRACD_USER:-tracd} --group ${TRACD_GROUP:-tracd} \
16
                --pidfile /var/run/tracd.pid --make-pidfile --background \
16
                --pidfile /run/tracd.pid --make-pidfile --background \
17
		--env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \
17
		--env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \
18
		--exec /usr/bin/tracd -- \
18
		--exec /usr/bin/tracd -- \
19
		-p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/}
19
		-p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/}
Lines 22-27 start() { Link Here
22
22
23
stop() {
23
stop() {
24
	ebegin "Stopping tracd"
24
	ebegin "Stopping tracd"
25
	start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid
25
	start-stop-daemon --stop --quiet --pidfile /run/tracd.pid
26
	eend $?
26
	eend $?
27
}
27
}

Return to bug 482034