vsftpd skript
bash-3.00$ cat /etc/rc.d/rc.vsftpd
#!/bin/sh
#
# /etc/rc.d/rc.vsftpd
#
# Start/stop/restart the vsftpd server.
# by milobit
#
# To make vsftpd start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.vsftpd
#
#IMPORTANT: Be sure you have put "background=YES"
# in your /etc/vsftpd.conf and "listen=YES"
#
#
vsftpd_start() {
/usr/sbin/vsftpd
echo "vsftpd started"
}
vsftpd_stop() {
killall vsftpd
echo "vsftpd stopped"
}
vsftpd_restart() {
vsftpd_stop
sleep 1
vsftpd_start
echo "vsftpd restarted"
}
case "$1" in
'start')
vsftpd_start ;;
'stop')
vsftpd_stop ;;
'restart')
vsftpd_restart ;;
*)
echo "usage $0 start|stop|restart" ;;
esac
bash-3.00$
Document Actions