Hi lapzlinux
If you don't have /etc/init.d/vsftpd (or "/etc/rc.d/init.d/vsftpd"
, you should create a vsftpd script file in /etc/init.d/ (or /etc/rc.d/init.d/ according as your distro ) and put in this script.
Here is my vsftpd script:
##################################################################################################
#!/bin/sh
# /etc/init.d/vsftpd
#
# Written by Sander Smeenk <ssmeenk@debian.org>
set -e
# Exit if vsftpd.conf doesn't have listen=yes or listen_ipv6=yes
# (mandatory for standalone operation)
if [ -f /etc/vsftpd.conf ] && ! egrep -iq "^ *listen(_ipv6)? *= *yes" /etc/vsftpd.conf; then
exit 0
fi
DAEMON=/usr/sbin/vsftpd
NAME=vsftpd
test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting FTP server: $NAME"
start-stop-daemon --start --background -m --pidfile /var/run/vsftpd/vsftpd.pid --exec $DAEMON
echo "."
;;
stop)
echo -n "Stopping FTP server: $NAME"
start-stop-daemon --stop --pidfile /var/run/vsftpd/vsftpd.pid --oknodo --exec $DAEMON
echo "."
;;
restart)
echo -n "Restarting FTP server: $NAME"
start-stop-daemon --stop --pidfile /var/run/vsftpd/vsftpd.pid --oknodo --exec $DAEMON
start-stop-daemon --start --background -m --pidfile /var/run/vsftpd/vsftpd.pid --exec $DAEMON
echo "."
;;
reload|force-reload)
echo "Reloading $NAME configuration files"
start-stop-daemon --stop --pidfile /var/run/vsftpd/vsftpd.pid --signal 1 --exec $DAEMON
echo "."
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}"
exit 1
;;
esac
exit 0
##################################################################################################
When you are ready,(use : su [then you user account changes as root] change the script execution attributes (use : chmod 766 vsftpd). Yet you can use command /etc/init.d/vsftpd start|stop (or "/etc/rc.d/init.d/vsftpd start|stop"
.
I hope that this reply will help you.
Best
master_boy