Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/cups

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 724 byte(s)
imported.

1 niro 2 #!/bin/sh
2    
3     #%rlevels: 3:s 4:s 5:s 0:k 6:k
4     #%start: 23
5     #%stop: 00
6    
7     #deps
8     #%needs:
9     #%before:
10     #%after:
11    
12     source /etc/sysconfig/rc
13     source $rc_functions
14    
15     case $1 in
16     start)
17     echo -e ${COLOREDSTAR}"Starting CUPS Printserver ..."
18     loadproc /usr/sbin/cupsd
19     update_svcstatus $1
20     splash svc_started "$(basename $0)" 0
21     ;;
22     stop)
23     echo -e ${COLOREDSTAR}"Stopping CUPS Printserver ..."
24     killproc cupsd
25     update_svcstatus $1
26     splash svc_stopped "$(basename $0)" 0
27     ;;
28    
29     reload)
30     echo -e ${COLOREDSTAR}"Reloading CUPS Printserver ..."
31     reloadproc /usr/sbin/cupsd
32     ;;
33    
34     restart)
35     $0 stop
36     sleep 1
37     $0 start
38     ;;
39    
40     status)
41     statusproc cupsd
42     ;;
43    
44     *)
45     echo "Usage: $0 {start|stop|reload|restart|status}"
46     exit 1
47     ;;
48     esac

Properties

Name Value
svn:executable *