Contents of /tags/proftpd-1_3_0a-r1/proftpd/proftpd.rc
Parent Directory | Revision Log
Revision 266 -
(show annotations)
(download)
Wed Jul 11 23:16:11 2007 UTC (17 years, 2 months ago) by (unknown author)
File size: 808 byte(s)
Wed Jul 11 23:16:11 2007 UTC (17 years, 2 months ago) by (unknown author)
File size: 808 byte(s)
This commit was manufactured by cvs2svn to create tag 'proftpd-1_3_0a-r1'.
1 | #!/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 |