wok-current diff lighttpd/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 | 3a574003f9dd |
children | b42847caa337 |
line diff
1.1 --- a/lighttpd/receipt Thu Oct 23 20:13:41 2008 +0200 1.2 +++ b/lighttpd/receipt Sun Dec 21 10:51:14 2008 +0000 1.3 @@ -83,10 +83,13 @@ 1.4 } 1.5 post_install() 1.6 { 1.7 - local root 1.8 - root=$1 1.9 echo "Processing post-install commands..." 1.10 # Just in case. 1.11 - chown www.www $root/var/log/$PACKAGE 1.12 - /etc/init.d/$PACKAGE start 1.13 + chown www.www $1/var/log/$PACKAGE 1.14 + if [ -z "$1" ]; then 1.15 + for i in apache ; do 1.16 + [ -f /etc/init.d/$i ] && /etc/init.d/$i stop 1.17 + done 1.18 + /etc/init.d/$PACKAGE start 1.19 + fi 1.20 }