case "$1" in
start)
# Check if the service is already running?
- if [ ! -f /var/lock/subsys/cups ]; then
+ if [ ! -f /var/lock/subsys/cupsd ]; then
msg_starting CUPS
daemon cupsd -c /etc/cups/cupsd.conf
RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cups
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cupsd
else
msg_already_running CUPS
exit 1
;;
stop)
# Stop daemons.
- if [ -f /var/lock/subsys/cups ]; then
+ if [ -f /var/lock/subsys/cupsd ]; then
msg_stopping CUPS
killproc cupsd
- rm -f /var/lock/subsys/cups >/dev/null 2>&1
+ rm -f /var/lock/subsys/cupsd >/dev/null 2>&1
else
msg_not_running CUPS
exit 1
$0 start
;;
reload)
- if [ -f /var/lock/subsys/cups ]; then
+ if [ -f /var/lock/subsys/cupsd ]; then
msg_show CUPS
msg_reload
busy
exit $?
;;
status)
- status cups
+ status cupsd
exit $?
;;
*)