wok-current diff php-apache/receipt @ rev 1805
php-*: restart web server during reconfigure
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 02 14:48:36 2008 +0000 (2008-12-02) |
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 Tue Dec 02 14:48:36 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 }