standalone 방식의 proftp는 시작 재시작 종료 agument가 없다.
따라서 종료할려면 ftpshut이나(이건 데몬이 죽는게 아니라 접속을 못하게 한다.)
killall proftpd를 써서 강제로 죽여야한다.
하지만 간단한 스크립트로 데몬을 죽이고, 살리고, 재시작 할 수 있다.
#!/bin/sh
#
# Startup script for
Proftpd
#
# chkconfig: 345 85
15
# description:
ProFTPD is a highly configurable ftp daemon for unix
# and unix-like
operating systems HTML files and CGI.
# processname:
proftpd
# config:
/etc/proftp.conf
# Source function
library.
.
/etc/rc.d/init.d/functions
# See how we were
called.
case "$1"
in
start)
echo
-n "Starting ProFTPD: "
daemon
proftpd
echo
touch
/var/lock/subsys/proftpd
;;
stop)
echo -n "Shutting down
ProFTPD: "
killproc proftpd
echo
rm -f
/var/lock/subsys/proftpd
;;
status)
status
proftpd
;;
restart)
$0
stop
$0
start
;;
*)
echo
"Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0