# HG changeset patch # User Richard Dunbar # Date 1370289649 0 # Node ID 75489cc57b2d473e9a28911ec6e10955b8b3011d # Parent 8243cc84766788c97d942a2cd390cf9e429b6f90 cups/stuff/etc/init.d/cupsd: fix shutdown diff -r 8243cc847667 -r 75489cc57b2d cups/stuff/etc/init.d/cupsd --- a/cups/stuff/etc/init.d/cupsd Mon Jun 03 06:58:16 2013 +0000 +++ b/cups/stuff/etc/init.d/cupsd Mon Jun 03 20:00:49 2013 +0000 @@ -2,8 +2,8 @@ # /etc/init.d/cups: Start, stop and restart Cups deamon on SliTaz, at boot # time or with the command line. # -# To start daemon at boot time, just put the right name in the $RUN_DAEMONS -# variable of /etc/rcS.conf and configure options with /etc/daemons.conf. +# To start daemon at boot time, add cupsd to the $RUN_DAEMONS variable +# of /etc/rcS.conf and configure options with /etc/daemons.conf. # . /etc/init.d/rc.functions . /etc/daemons.conf @@ -17,7 +17,7 @@ case "$1" in stop) echo -n "Stopping $DESC: $NAME... " - killall -q cupsd + kill $(pgrep -f cupsd) rm -f $PIDFILE status ;;