Magellan Linux

Contents of /trunk/cups/cups.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations) (download)
Sat Jul 2 17:07:55 2005 UTC (19 years, 4 months ago) by niro
File size: 809 byte(s)
new

1 #!/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 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 *