Magellan Linux

Contents of /trunk/magellan-initscripts/etc/rc.d/init.d/cups

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (show annotations) (download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 2 months ago) by niro
File size: 852 byte(s)
updated header and fixed whitespaces

1 #!/bin/sh
2 # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/cups,v 1.2 2005-03-15 19:07:56 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 echo -e ${COLOREDSTAR}"Starting CUPS Printserver ..."
19 loadproc /usr/sbin/cupsd
20 update_svcstatus $1
21 splash svc_started "$(basename $0)" 0
22 ;;
23
24 stop)
25 echo -e ${COLOREDSTAR}"Stopping CUPS Printserver ..."
26 killproc cupsd
27 update_svcstatus $1
28 splash svc_stopped "$(basename $0)" 0
29 ;;
30
31 reload)
32 echo -e ${COLOREDSTAR}"Reloading CUPS Printserver ..."
33 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 echo "Usage: $0 {start|stop|reload|restart|status}"
48 exit 1
49 ;;
50 esac

Properties

Name Value
svn:executable *