Quote:
Originally Posted by Altiris
In my /etc/vsftpd.conf config I set it to use a different port than 21 and I restarted rc.inetd ...
|
Stock rc.inetd doesn't start/stop vsftpd. You'll need to use:
START: /usr/sbin/vsftpd
STOP: killall vsftpd
Or you could build a script:
Code:
#!/bin/sh
#
# /etc/rc.d/rc.vsftpd
#
# Start/stop the VSFTP server.
#
# To make VSFTP start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.vsftpd
#
case "$1" in
'start')
/usr/sbin/vsftpd & ;;
'stop')
killall vsftpd ;;
*)
echo "usage $0 start|stop" ;;
esac
Then add this to your rc.local
Code:
# VSFTPD
if [ -x /etc/rc.d/rc.vsftpd ]; then
echo START vsftpd - /etc/rc.d/rc.vsftpd start
/etc/rc.d/rc.vsftpd start
fi
Hope that helps!