Magellan Linux

Annotation of /trunk/lprng/lprng.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 650 - (hide annotations) (download)
Tue Jun 10 22:19:59 2008 UTC (15 years, 11 months ago) by niro
File size: 761 byte(s)
-busybox-initscripts compat

1 niro 632 #!/bin/sh
2 niro 650 # $Header: /root/magellan-cvs/src/lprng/lprng.rc,v 1.2 2008-06-10 22:19:59 niro Exp $
3 niro 632
4 niro 650 #%rlevels: 3:s 0:k
5 niro 632 #%start: 23
6     #%stop: 00
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13 niro 650 source /etc/conf.d/rc
14     source ${rc_functions}
15 niro 632
16     case $1 in
17     start)
18     echo -e ${COLOREDSTAR}"Starting LPRng Printserver ..."
19     start-stop-daemon --start --quiet --exec /usr/sbin/lpd
20    
21     update_svcstatus $1
22     splash svc_started "$(basename $0)" 0
23     ;;
24    
25     stop)
26     echo -e ${COLOREDSTAR}"Stopping LPRng Printserver ..."
27     start-stop-daemon --stop --quiet --exec /usr/sbin/lpd
28    
29     update_svcstatus $1
30     splash svc_stopped "$(basename $0)" 0
31     ;;
32    
33     restart)
34     $0 stop
35     sleep 1
36     $0 start
37     ;;
38    
39     status)
40     statusproc lpd
41     ;;
42    
43     *)
44     echo "Usage: $0 {start|stop|restart|status}"
45     exit 1
46     ;;
47     esac