}
stop() {
- # Stop daemons.
if [ -f /var/lock/subsys/proftpd ]; then
msg_stopping ProFTPD
killproc proftpd
- rm -f /var/lock/subsys/proftpd /var/run/proftpd* > /dev/null 2>&1
+ rm -f /var/lock/subsys/proftpd /var/run/proftpd/* >/dev/null 2>&1
else
msg_not_running ProFTPD
fi
# See how we were called.
case "$1" in
start)
- start
+ start
;;
stop)
- stop
+ stop
;;
restart)
stop