Gentoo Archives: gentoo-commits

From: "Thilo Bangert (bangert)" <bangert@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/spawn-fcgi/files: spawn-fcgi.initd
Date: Tue, 07 Apr 2009 08:39:02
Message-Id: E1Lr6pg-0001sC-Gi@stork.gentoo.org
1 bangert 09/04/07 08:39:00
2
3 Modified: spawn-fcgi.initd
4 Log:
5 make sure pidpath is available
6 (Portage version: 2.2_rc26/cvs/Linux i686)
7
8 Revision Changes Path
9 1.4 www-servers/spawn-fcgi/files/spawn-fcgi.initd
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd?rev=1.4&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd?rev=1.4&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd?r1=1.3&r2=1.4
14
15 Index: spawn-fcgi.initd
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v
18 retrieving revision 1.3
19 retrieving revision 1.4
20 diff -u -r1.3 -r1.4
21 --- spawn-fcgi.initd 4 Apr 2009 10:40:24 -0000 1.3
22 +++ spawn-fcgi.initd 7 Apr 2009 08:39:00 -0000 1.4
23 @@ -1,7 +1,7 @@
24 #!/sbin/runscript
25 # Copyright 1999-2009 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v 1.3 2009/04/04 10:40:24 bangert Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v 1.4 2009/04/07 08:39:00 bangert Exp $
29
30 PROGNAME=${SVCNAME#*.}
31 SPAWNFCGI=/usr/bin/spawn-fcgi
32 @@ -33,7 +33,7 @@
33 fi
34
35 local X E OPTIONS SOCKET_OPTION PORT_OPTION RETVAL
36 -
37 +
38 if [ -z "${FCGI_ADDRESS}" ]; then
39 FCGI_ADDRESS=127.0.0.1
40 fi
41 @@ -66,6 +66,9 @@
42 [ -n "${j}" ] && E="${E} -e ${i}=${j}"
43 done
44
45 + #make sure pidfile dir exists
46 + install -d "${PIDPATH}" -m 0700 -o root
47 +
48 ebegin "Starting FastCGI application ${PROGNAME}"
49 X=0
50 while [ $X -lt ${FCGI_CHILDREN} ]; do
51 @@ -78,7 +81,7 @@
52 start-stop-daemon --start --pidfile ${P} ${E} --exec ${SPAWNFCGI} -- \
53 ${SOCKET_OPTION} ${INET_OPTION} -P ${P} ${OPTIONS} -- ${FCGI_PROGRAM}
54 RETVAL=$?
55 -
56 +
57 # Stop on error. Don't want to spawn a mess!
58 [ "${RETVAL}" != "0" ] && break
59 done