4 # cups Common UNIX Printing System (CUPS)
6 # chkconfig: 0235 99 00
7 # description: Startup/shutdown script for the Common UNIX \
8 # Printing System (CUPS).
11 # Source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
17 # Get service config - may override defaults
18 [ -f /etc/sysconfig/cups ] && . /etc/sysconfig/cups
20 # Check that networking is up.
21 if is_no "${NETWORKING}"; then
26 # See how we were called.
29 # Check if the service is already running?
30 if [ ! -f /var/lock/subsys/cups ]; then
32 daemon cupsd -c /etc/cups/cupsd.conf
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cups
36 msg_Already_Running CUPS
42 if [ -f /var/lock/subsys/cups ]; then
45 rm -f /var/lock/subsys/cups >/dev/null 2>&1
56 if [ -f /var/lock/subsys/cups ]; then
69 # if program allows reloading without stopping
82 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
83 msg_Usage "$0 {start|stop|status|restart|reload|force-reload}"