wok diff cups/stuff/etc/init.d/cupsd @ rev 2206
cups: up to 13.9, fix web interface and dependencies
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 10 16:37:43 2009 +0100 (2009-02-10) |
parents | 2f416a878f2e |
children | 9d04e92aeeb7 |
line diff
1.1 --- a/cups/stuff/etc/init.d/cupsd Wed Apr 23 01:01:46 2008 +0200 1.2 +++ b/cups/stuff/etc/init.d/cupsd Tue Feb 10 16:37:43 2009 +0100 1.3 @@ -18,13 +18,12 @@ 1.4 stop) 1.5 echo -n "Stopping $DESC: $NAME... " 1.6 killall -q cupsd 1.7 + rm -f $PIDFILE 1.8 status 1.9 ;; 1.10 - start) 1.11 - if ps | grep $DAEMON; then 1.12 - echo "$NAME is already running... " 1.13 - exit 0 1.14 - fi 1.15 + start|restart) 1.16 + killall -q cupsd 1.17 + rm -f $PIDFILE 1.18 echo -n "Starting $DESC: $NAME... " 1.19 $DAEMON $OPTIONS 1.20 status