wok-4.x diff php-apache/receipt @ rev 1875

Fix typos in receipts - DEPENDS not DEPENS
author Julien Rabier <taziden@slitaz.org>
date Wed Dec 17 05:09:56 2008 +0100 (2008-12-17)
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	Wed Dec 17 05:09:56 2008 +0100
     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  }