19 |
start) |
start) |
20 |
echo -e ${COLOREDSTAR}"Starting proftpd daemon ..." |
echo -e ${COLOREDSTAR}"Starting proftpd daemon ..." |
21 |
start-stop-daemon --start --quiet --exec /usr/sbin/proftpd \ |
start-stop-daemon --start --quiet --exec /usr/sbin/proftpd \ |
22 |
--make-pidfile --pidfile /var/run/proftpd.pid -- ${PROFTPD_OPTIONS} |
--pidfile /var/run/proftpd/proftpd.pid -- ${PROFTPD_OPTIONS} |
23 |
evaluate_retval |
evaluate_retval |
24 |
|
|
25 |
update_svcstatus $1 |
update_svcstatus $1 |
28 |
|
|
29 |
stop) |
stop) |
30 |
echo -e ${COLOREDSTAR}"Stopping proftpd daemon ..." |
echo -e ${COLOREDSTAR}"Stopping proftpd daemon ..." |
31 |
start-stop-daemon --stop --quiet --retry 20 --pidfile /var/run/proftpd.pid |
start-stop-daemon --stop --quiet --retry 20 --pidfile /var/run/proftpd/proftpd.pid |
32 |
evaluate_retval |
evaluate_retval |
33 |
|
|
34 |
update_svcstatus $1 |
update_svcstatus $1 |