www-apps/trac: bump
(Portage version: 2.2.0_alpha30-r1/svn/Linux x86_64) git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2892 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Copyright 1999-2011 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,v 1.3 2008/07/16 21:20:07 pva Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd,v 1.5 2011/02/08 08:02:50 djc Exp $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
@@ -14,7 +14,8 @@ start() {
|
||||
# --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 \
|
||||
--exec /usr/bin/python -- /usr/bin/tracd \
|
||||
--env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \
|
||||
--exec /usr/bin/tracd -- \
|
||||
-p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/}
|
||||
eend $?
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/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 $?
|
||||
}
|
||||
Reference in New Issue
Block a user