#!/bin/sh # $Header: /root/magellan-cvs/src/cups/cups.rc,v 1.1 2005-07-02 17:07:55 niro Exp $ #%rlevels: 3:s 4:s 5:s 0:k 6:k #%start: 23 #%stop: 00 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions case $1 in start) rc_print "Starting CUPS Printserver ..." loadproc /usr/sbin/cupsd update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) rc_print "Stopping CUPS Printserver ..." killproc cupsd update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; reload) rc_print "Reloading CUPS Printserver ..." reloadproc /usr/sbin/cupsd ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc cupsd ;; *) rc_echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac