wok-4.x rev 3874
Apache: ensure pidfile is valid
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 10 13:16:15 2009 +0200 (2009-08-10) |
parents | a86dc82474f8 |
children | c88819f36315 |
files | apache/receipt |
line diff
1.1 --- a/apache/receipt Mon Aug 10 01:36:29 2009 +0000 1.2 +++ b/apache/receipt Mon Aug 10 13:16:15 2009 +0200 1.3 @@ -39,7 +39,15 @@ 1.4 cp -a $_pkg/etc $fs 1.5 rm -rf $fs/etc/apache/original 1.6 cp -a $_pkg/var $fs 1.7 - ln -s /usr/bin/apachectl $fs/etc/init.d/apache 1.8 + cat > $fs/etc/init.d/apache <<EOT 1.9 +#!/bin/sh 1.10 + 1.11 +. /etc/init.d/rc.functions 1.12 +active_pidfile /var/run/apache/httpd.pid httpd 1.13 + 1.14 +exec /usr/bin/apachectl "\$@" 1.15 +EOT 1.16 + chmod +x $fs/etc/init.d/apache 1.17 sed -i -e 's|User daemon|User www|' -e 's|Group daemon|Group www|' \ 1.18 -e 's|ServerAdmin you@example.com|ServerAdmin root@localhost|' \ 1.19 -e 's|#Include /etc/apache/extra/httpd-ssl.conf|Include /etc/apache/extra/httpd-ssl.conf|' \