Magellan Linux

Annotation of /trunk/cups/cups.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1421 - (hide annotations) (download)
Mon Jul 18 11:40:35 2011 UTC (13 years, 3 months ago) by niro
File size: 773 byte(s)
-use rc_print
1 niro 28 #!/bin/sh
2     # $Header: /root/magellan-cvs/src/cups/cups.rc,v 1.1 2005-07-02 17:07:55 niro Exp $
3    
4     #%rlevels: 3:s 4:s 5:s 0:k 6:k
5     #%start: 23
6     #%stop: 00
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     case $1 in
17     start)
18 niro 1421 rc_print "Starting CUPS Printserver ..."
19 niro 28 loadproc /usr/sbin/cupsd
20     update_svcstatus $1
21     splash svc_started "$(basename $0)" 0
22     ;;
23    
24     stop)
25 niro 1421 rc_print "Stopping CUPS Printserver ..."
26 niro 28 killproc cupsd
27     update_svcstatus $1
28     splash svc_stopped "$(basename $0)" 0
29     ;;
30    
31     reload)
32 niro 1421 rc_print "Reloading CUPS Printserver ..."
33 niro 28 reloadproc /usr/sbin/cupsd
34     ;;
35    
36     restart)
37     $0 stop
38     sleep 1
39     $0 start
40     ;;
41    
42     status)
43     statusproc cupsd
44     ;;
45    
46     *)
47 niro 1421 rc_echo "Usage: $0 {start|stop|reload|restart|status}"
48 niro 28 exit 1
49     ;;
50     esac

Properties

Name Value
svn:executable *