wok annotate cups/stuff/etc/init.d/cupsd @ rev 2483
gxmessage, gtk*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 15 21:03:13 2009 +0000 (2009-03-15) |
parents | 2d810185f0ce |
children | c840214a83b8 |
rev | line source |
---|---|
pankso@632 | 1 #!/bin/sh |
pankso@632 | 2 # /etc/init.d/cups: Start, stop and restart Cups deamon on SliTaz, at boot |
pankso@632 | 3 # time or with the command line. |
pankso@632 | 4 # |
pankso@632 | 5 # To start daemon at boot time, just put the right name in the $RUN_DAEMONS |
pankso@632 | 6 # variable of /etc/rcS.conf and configure options with /etc/daemons.conf. |
pankso@632 | 7 # |
pankso@632 | 8 . /etc/init.d/rc.functions |
pankso@632 | 9 . /etc/daemons.conf |
pankso@632 | 10 |
pankso@632 | 11 NAME=Cupsd |
pankso@632 | 12 DESC="cups deamon" |
pankso@632 | 13 DAEMON=/usr/sbin/cupsd |
pankso@632 | 14 OPTIONS=$CUPSD_OPTIONS |
pankso@632 | 15 PIDFILE=/var/run/cups/cups.sock |
pankso@632 | 16 |
pankso@632 | 17 case "$1" in |
pankso@664 | 18 stop) |
pankso@664 | 19 echo -n "Stopping $DESC: $NAME... " |
pankso@664 | 20 killall -q cupsd |
pankso@2206 | 21 rm -f $PIDFILE |
pankso@664 | 22 status |
pankso@664 | 23 ;; |
pankso@2208 | 24 start) |
pankso@664 | 25 echo -n "Starting $DESC: $NAME... " |
pankso@664 | 26 $DAEMON $OPTIONS |
pankso@664 | 27 status |
pankso@664 | 28 ;; |
pankso@664 | 29 *) |
pankso@664 | 30 echo "" |
pankso@664 | 31 echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop]" |
pankso@664 | 32 echo "" |
pankso@664 | 33 exit 1 |
pankso@664 | 34 ;; |
pankso@632 | 35 esac |
pankso@632 | 36 |
pankso@632 | 37 exit 0 |