wok diff apache/receipt @ rev 1905

apache,lighttpd*: ensure only one web server is running
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 21 10:51:14 2008 +0000 (2008-12-21)
parents cd99364b9f32
children b42847caa337
line diff
     1.1 --- a/apache/receipt	Sun Nov 30 21:21:48 2008 +0000
     1.2 +++ b/apache/receipt	Sun Dec 21 10:51:14 2008 +0000
     1.3 @@ -80,7 +80,12 @@
     1.4  
     1.5  
     1.6  EOT
     1.7 -	[ -z "$1" ] && /etc/init.d/$PACKAGE start
     1.8 +	if [ -z "$1" ]; then
     1.9 +		for i in lighttpd ; do
    1.10 +			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
    1.11 +		done
    1.12 +		/etc/init.d/$PACKAGE start
    1.13 +	fi
    1.14  }
    1.15  
    1.16  # Rules to clean extras dirs or files