Magellan Linux

Annotation of /trunk/proftpd/proftpd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 265 - (hide annotations) (download)
Wed Jul 11 23:16:10 2007 UTC (16 years, 10 months ago) by niro
File size: 808 byte(s)
- proftpd-1.3.0a-r1

1 niro 265 #!/bin/sh
2    
3     #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
4     #%start: 23
5     #%stop: 47
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 proftpd daemon ..."
18     start-stop-daemon --start --quiet --exec /usr/sbin/proftpd \
19     --make-pidfile --pidfile /var/run/proftpd.pid
20     evaluate_retval
21    
22     update_svcstatus $1
23     splash svc_started "$(basename $0)" 0
24     ;;
25    
26     stop)
27     echo -e ${COLOREDSTAR}"Stopping proftpd daemon ..."
28     start-stop-daemon --stop --quiet --retry 20 --pidfile /var/run/proftpd.pid
29     evaluate_retval
30    
31     update_svcstatus $1
32     splash svc_stopped "$(basename $0)" 0
33     ;;
34    
35     restart)
36     $0 stop
37     sleep 1
38     $0 start
39     ;;
40    
41     status)
42     statusproc proftpd
43     ;;
44    
45     *)
46     echo "Usage: $0 {start|stop|restart|status}"
47     exit 1
48     ;;
49     esac