Magellan Linux

Annotation of /trunk/proftpd/proftpd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 991 - (hide annotations) (download)
Wed Mar 3 19:08:46 2010 UTC (14 years, 2 months ago) by niro
File size: 873 byte(s)
files and updates for proftpd-1.3.3 with optional mysql, ldap, tls and anonymous support

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 niro 991 # read options
16     source /etc/conf.d/proftpd
17    
18 niro 265 case "$1" in
19     start)
20     echo -e ${COLOREDSTAR}"Starting proftpd daemon ..."
21     start-stop-daemon --start --quiet --exec /usr/sbin/proftpd \
22 niro 991 --make-pidfile --pidfile /var/run/proftpd.pid -- ${PROFTPD_OPTIONS}
23 niro 265 evaluate_retval
24    
25     update_svcstatus $1
26     splash svc_started "$(basename $0)" 0
27     ;;
28    
29     stop)
30     echo -e ${COLOREDSTAR}"Stopping proftpd daemon ..."
31     start-stop-daemon --stop --quiet --retry 20 --pidfile /var/run/proftpd.pid
32     evaluate_retval
33    
34     update_svcstatus $1
35     splash svc_stopped "$(basename $0)" 0
36     ;;
37    
38     restart)
39     $0 stop
40     sleep 1
41     $0 start
42     ;;
43    
44     status)
45     statusproc proftpd
46     ;;
47    
48     *)
49     echo "Usage: $0 {start|stop|restart|status}"
50     exit 1
51     ;;
52     esac