wok-next diff cups/stuff/etc/init.d/cupsd @ rev 8596

Up: rage to 55225
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Feb 14 05:12:08 2011 +0100 (2011-02-14)
parents 9d04e92aeeb7
children bd8f09202680
line diff
     1.1 --- a/cups/stuff/etc/init.d/cupsd	Tue Feb 10 16:53:39 2009 +0100
     1.2 +++ b/cups/stuff/etc/init.d/cupsd	Mon Feb 14 05:12:08 2011 +0100
     1.3 @@ -22,9 +22,15 @@
     1.4  		status
     1.5  		;;
     1.6  	start)
     1.7 -		echo -n "Starting $DESC: $NAME... "
     1.8 -		$DAEMON $OPTIONS
     1.9 -		status
    1.10 +		if [ ! -e $PIDFILE ]; then
    1.11 +			echo -n "Starting $DESC: $NAME... "
    1.12 +			$DAEMON $OPTIONS
    1.13 +			status
    1.14 +		else
    1.15 +			echo -n "Not starting $DESC: $DESC is already running"
    1.16 +			false
    1.17 +			status
    1.18 +		fi
    1.19  		;;
    1.20  	*)
    1.21  		echo ""