wok diff php-apache/receipt @ rev 2336
Syslinux: rename common.inc to common.cfg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 01 11:02:24 2009 +0000 (2009-03-01) |
parents | 41897da4a1db |
children | d1aba649375c |
line diff
1.1 --- a/php-apache/receipt Wed Aug 27 18:48:42 2008 +0000 1.2 +++ b/php-apache/receipt Sun Mar 01 11:02:24 2009 +0000 1.3 @@ -47,8 +47,12 @@ 1.4 Allow from all 1.5 </DirectoryMatch> 1.6 EOT 1.7 - # Start Web server. 1.8 - if [ -z "$1" -a ! -f "/var/run/apache/httpd.pid" ]; then 1.9 + # Restart Web server. 1.10 + if [ -z "$1" -a -f "/var/run/apache/httpd.pid" ]; then 1.11 + /etc/init.d/apache stop 1.12 + sleep 2 1.13 + fi 1.14 + if [ -z "$1" ]; then 1.15 /etc/init.d/apache start 1.16 fi 1.17 }