Log in


Forgot your password?
prijatelji LUGoNSa
gnu.gif
linuxzasve.jpg
hulk.jpg
 
You are here: Home / Uputstva / Opšte / vsftpd skript

vsftpd skript

by milobit last modified Jan 23, 2006 09:31 AM
slackware rc.vsftpd skirpt za automatizaciju vsftpd-a

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