1 |
wrobel 08/09/10 07:50:31 |
2 |
|
3 |
Added: tracd.initd.2 |
4 |
Log: |
5 |
Added trac-0.11.1-r1 that should fix #236509. |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 www-apps/trac/files/tracd.initd.2 |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/files/tracd.initd.2?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/trac/files/tracd.initd.2?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: tracd.initd.2 |
15 |
=================================================================== |
16 |
#!/sbin/runscript |
17 |
# Copyright 1999-2006 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License, v2 or later |
19 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/files/tracd.initd.2,v 1.1 2008/09/10 07:50:30 wrobel Exp $ |
20 |
|
21 |
depend() { |
22 |
need net |
23 |
} |
24 |
|
25 |
start() { |
26 |
ebegin "Starting tracd" |
27 |
# tracd fails to create pidfile if started as non-root user, thus we are asking |
28 |
# s-s-d to do that. To have correct pid we avoid -d option of tracd and use |
29 |
# --background option of s-s-d. |
30 |
start-stop-daemon --start --chuid ${TRACD_USER:-tracd}:${TRACD_GROUP:-tracd} \ |
31 |
--pidfile /var/run/tracd.pid --make-pidfile --background \ |
32 |
--env PYTHON_EGG_CACHE="/var/lib/trac/egg-cache" \ |
33 |
--exec /usr/bin/python -- /usr/bin/tracd \ |
34 |
-p ${TRACD_PORT:-8000} ${TRACD_OPTS:---env-parent-dir /var/lib/trac/} |
35 |
eend $? |
36 |
} |
37 |
|
38 |
stop() { |
39 |
ebegin "Stopping tracd" |
40 |
start-stop-daemon --stop --quiet --pidfile /var/run/tracd.pid |
41 |
eend $? |
42 |
} |