wok diff php-apache/receipt @ rev 1952
Ajaxterm: update urls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 29 16:47:53 2008 +0000 (2008-12-29) |
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 Mon Dec 29 16:47:53 2008 +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 }