diff options
author | Thilo Bangert <bangert@gentoo.org> | 2009-04-07 08:39:00 +0000 |
---|---|---|
committer | Thilo Bangert <bangert@gentoo.org> | 2009-04-07 08:39:00 +0000 |
commit | 45f8382f24e16331639390f90aafbfad409aefaf (patch) | |
tree | cb6ffd243f692d79ed21ff3597c821267377b051 /www-servers/spawn-fcgi | |
parent | Version bump (diff) | |
download | historical-45f8382f24e16331639390f90aafbfad409aefaf.tar.gz historical-45f8382f24e16331639390f90aafbfad409aefaf.tar.bz2 historical-45f8382f24e16331639390f90aafbfad409aefaf.zip |
make sure pidpath is available
Package-Manager: portage-2.2_rc26/cvs/Linux i686
Diffstat (limited to 'www-servers/spawn-fcgi')
-rw-r--r-- | www-servers/spawn-fcgi/ChangeLog | 5 | ||||
-rw-r--r-- | www-servers/spawn-fcgi/Manifest | 4 | ||||
-rw-r--r-- | www-servers/spawn-fcgi/files/spawn-fcgi.initd | 9 |
3 files changed, 12 insertions, 6 deletions
diff --git a/www-servers/spawn-fcgi/ChangeLog b/www-servers/spawn-fcgi/ChangeLog index 3088be05c2dd..eef0c419b2c6 100644 --- a/www-servers/spawn-fcgi/ChangeLog +++ b/www-servers/spawn-fcgi/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for www-servers/spawn-fcgi # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/ChangeLog,v 1.3 2009/04/04 10:40:23 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/ChangeLog,v 1.4 2009/04/07 08:39:00 bangert Exp $ + + 07 Apr 2009; Thilo Bangert <bangert@gentoo.org> files/spawn-fcgi.initd: + make sure pidpath is available 04 Apr 2009; Thilo Bangert <bangert@gentoo.org> files/spawn-fcgi.initd: posixify init script - bug #260162 diff --git a/www-servers/spawn-fcgi/Manifest b/www-servers/spawn-fcgi/Manifest index 875e23d1efa3..5c47bb1ba839 100644 --- a/www-servers/spawn-fcgi/Manifest +++ b/www-servers/spawn-fcgi/Manifest @@ -1,6 +1,6 @@ AUX spawn-fcgi.confd 2211 RMD160 a6f7f778fbe5eab7702a407c9761f537ecb43f83 SHA1 8c8eb892c06aedb3641d7bef692a24200df02f23 SHA256 4a5ce40facaea8bebdc519787111b32a24df82d313079a8e882d599ab4d2b344 -AUX spawn-fcgi.initd 2647 RMD160 ce88b0b7b989bcca49e91e7afd0e5102a18b4929 SHA1 06aa3fc6f1ae328b27a9b4b6c398f71c30846054 SHA256 c92a125c90f8d116198d3b0d53879656d0c4d58c6c59843a0add49f39c01a18d +AUX spawn-fcgi.initd 2717 RMD160 5153768d05ac0946b5c06249d0fffaa42f40852a SHA1 3bc0009288b8b93ab408005ec7a28873ee9abba8 SHA256 9bd89c86cdcfd3c2cd3f15192b810997c991ac8a051b3e769360510ae9f8aeea DIST spawn-fcgi-1.6.1.tar.bz2 71975 RMD160 d906031b3ce40c4a7d682da8acd556f12e8f3fcb SHA1 e18db1367ac1e186972d02e4d9e67a3a34212fc2 SHA256 81301b74d66b8083f23e9c1e39d42fe71995cdf3d06d3beecf3a81a1782f523c EBUILD spawn-fcgi-1.6.1.ebuild 834 RMD160 68e16ee083830aa035c5051a7ae464d6da4620f7 SHA1 5b94d69e68fb9dbf10d800c380061c643d0bb7a5 SHA256 eca2be8ef509a5532cf9b1b4d90880169b5025784573c6f62f0bbb42d4638d35 -MISC ChangeLog 740 RMD160 68ed4e115c122c25042055156727cfa21ae4e729 SHA1 73d9f94fd33ee6104d0ada03c7ca0e4861c95a8d SHA256 f1c2a4874a9b654a593243dc062f59e49c18556ffe486207634dff5052b342c2 +MISC ChangeLog 848 RMD160 2acbda99d74f560398b0aca5220edea8f1e587b3 SHA1 682f4fb6a806bff3c840d9c206e3aa4359c09648 SHA256 4ab398c8d1e314277fc7936b435cd80705c20a53796f33aa00e439e033b27d96 MISC metadata.xml 454 RMD160 6d518892201f5edddc6a83e119384f5c57661d42 SHA1 37c722d45f2473c24620d92f5bc2b31e92f6385c SHA256 dad5c3b31bdf5cffbec7a56402ecc46a9ed1db288f9e27302ca3d53da5b0fe0c diff --git a/www-servers/spawn-fcgi/files/spawn-fcgi.initd b/www-servers/spawn-fcgi/files/spawn-fcgi.initd index 574ae86cd03e..3fc89950e2e5 100644 --- a/www-servers/spawn-fcgi/files/spawn-fcgi.initd +++ b/www-servers/spawn-fcgi/files/spawn-fcgi.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v 1.3 2009/04/04 10:40:24 bangert Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v 1.4 2009/04/07 08:39:00 bangert Exp $ PROGNAME=${SVCNAME#*.} SPAWNFCGI=/usr/bin/spawn-fcgi @@ -33,7 +33,7 @@ start() { fi local X E OPTIONS SOCKET_OPTION PORT_OPTION RETVAL - + if [ -z "${FCGI_ADDRESS}" ]; then FCGI_ADDRESS=127.0.0.1 fi @@ -66,6 +66,9 @@ start() { [ -n "${j}" ] && E="${E} -e ${i}=${j}" done + #make sure pidfile dir exists + install -d "${PIDPATH}" -m 0700 -o root + ebegin "Starting FastCGI application ${PROGNAME}" X=0 while [ $X -lt ${FCGI_CHILDREN} ]; do @@ -78,7 +81,7 @@ start() { start-stop-daemon --start --pidfile ${P} ${E} --exec ${SPAWNFCGI} -- \ ${SOCKET_OPTION} ${INET_OPTION} -P ${P} ${OPTIONS} -- ${FCGI_PROGRAM} RETVAL=$? - + # Stop on error. Don't want to spawn a mess! [ "${RETVAL}" != "0" ] && break done |