wok-stable diff php-ldap/receipt @ rev 1825

Add git
author Bill Nagel <b1+slitaz@nagel.org>
date Tue Dec 09 04:25:26 2008 -0800 (2008-12-09)
parents 8294794b7a81
children fac71ab90788
line diff
     1.1 --- a/php-ldap/receipt	Sun Nov 23 12:08:41 2008 +0000
     1.2 +++ b/php-ldap/receipt	Tue Dec 09 04:25:26 2008 -0800
     1.3 @@ -36,8 +36,12 @@
     1.4  	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\nextension=ldap.so|' -i $1/etc/php.ini
     1.5  	# Start Web server.
     1.6  	while read daemon file; do
     1.7 -		if [ -z "$1" -a -f /etc/init.d/$daemon \
     1.8 -			     -a ! -f "/var/run/$file" ]; then
     1.9 +		[ -z "$1" ] || continue
    1.10 +		if [ -f "/var/run/$file" ]; then
    1.11 +			/etc/init.d/$daemon stop
    1.12 +			sleep 2
    1.13 +		fi
    1.14 +		if [ -f /etc/init.d/$daemon ]; then
    1.15  			/etc/init.d/$daemon start
    1.16  		fi
    1.17  	done <<EOT
    1.18 @@ -53,7 +57,9 @@
    1.19  
    1.20  	# Start Web server.
    1.21  	while read daemon file; do
    1.22 -		if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then
    1.23 +		if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
    1.24 +			/etc/init.d/$daemon stop
    1.25 +			sleep 2
    1.26  			/etc/init.d/$daemon start
    1.27  		fi
    1.28  	done <<EOT