diff options
author | 2008-09-10 07:50:30 +0000 | |
---|---|---|
committer | 2008-09-10 07:50:30 +0000 | |
commit | 80f9c26a41b49c12c297328a52a2d75deb4695e5 (patch) | |
tree | 342b47e53f3928168811a5f7fef41d9df749c672 /www-apps/trac/files | |
parent | Added symfony-1.0.17 and symfony-1.1.1. (diff) | |
download | gentoo-2-80f9c26a41b49c12c297328a52a2d75deb4695e5.tar.gz gentoo-2-80f9c26a41b49c12c297328a52a2d75deb4695e5.tar.bz2 gentoo-2-80f9c26a41b49c12c297328a52a2d75deb4695e5.zip |
Added trac-0.11.1-r1 that should fix #236509.
(Portage version: 2.1.4.4)
Diffstat (limited to 'www-apps/trac/files')
-rwxr-xr-x | www-apps/trac/files/tracd.initd.2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/www-apps/trac/files/tracd.initd.2 b/www-apps/trac/files/tracd.initd.2 new file mode 100755 index 000000000000..75de90902efb --- /dev/null +++ b/www-apps/trac/files/tracd.initd.2 @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd.2,v 1.1 2008/09/10 07:50:30 wrobel Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting tracd" + # tracd fails to create pidfile if started as non-root user, thus we are asking + # s-s-d to do that. To have correct pid we avoid -d option of tracd and use + # --background option of s-s-d. + start-stop-daemon --start --chuid ${TRACD_USER:-tracd}:${TRACD_GROUP:-tracd} \ + --pidfile /var/run/tracd.pid --make-pidfile --background \ + --env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \ + --exec /usr/bin/python -- /usr/bin/tracd \ + -p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/} + eend $? +} + +stop() { + ebegin "Stopping tracd" + start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid + eend $? +} |