wok rev 14648
cups/stuff/etc/init.d/cupsd: fix shutdown
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Jun 03 20:00:49 2013 +0000 (2013-06-03) |
parents | 8243cc847667 |
children | 662b600e1688 |
files | cups/stuff/etc/init.d/cupsd |
line diff
1.1 --- a/cups/stuff/etc/init.d/cupsd Mon Jun 03 06:58:16 2013 +0000 1.2 +++ b/cups/stuff/etc/init.d/cupsd Mon Jun 03 20:00:49 2013 +0000 1.3 @@ -2,8 +2,8 @@ 1.4 # /etc/init.d/cups: Start, stop and restart Cups deamon on SliTaz, at boot 1.5 # time or with the command line. 1.6 # 1.7 -# To start daemon at boot time, just put the right name in the $RUN_DAEMONS 1.8 -# variable of /etc/rcS.conf and configure options with /etc/daemons.conf. 1.9 +# To start daemon at boot time, add cupsd to the $RUN_DAEMONS variable 1.10 +# of /etc/rcS.conf and configure options with /etc/daemons.conf. 1.11 # 1.12 . /etc/init.d/rc.functions 1.13 . /etc/daemons.conf 1.14 @@ -17,7 +17,7 @@ 1.15 case "$1" in 1.16 stop) 1.17 echo -n "Stopping $DESC: $NAME... " 1.18 - killall -q cupsd 1.19 + kill $(pgrep -f cupsd) 1.20 rm -f $PIDFILE 1.21 status 1.22 ;;