Hi,

When setting-up 0.4.2, I wanted to define my own vsftpd.conf file in / 
mnt/kd/.

I set in my /mnt/kd/rc.conf:
FTPD=vsftpd
FTPDOPTIONS="/mnt/kd/vsftpd.conf"

I rebooted, and ftp did not startup.
The problem is in /etc/init.d/vsftpd...

/etc/init.d/vsftpd  # 0.4.2
start () {
if [ "$FTPD" -a "$FTPD" = "vsftpd" -a -r /tmp/etc/vsftpd.conf ]
then
if [ "$FTPDOPTIONS" ]
then
FTPDOPTIONS="$FTPDOPTIONS"
else
FTPDOPTIONS="/etc/vsftpd.conf"
echo "Starting vsftpd..."
vsftpd "$FTPDOPTIONS"
fi
fi
}

The first "fi" needs to move up two lines as below.

/etc/init.d/vsftpd  # changed
start () {
if [ "$FTPD" -a "$FTPD" = "vsftpd" -a -r /tmp/etc/vsftpd.conf ]
then
if [ "$FTPDOPTIONS" ]
then
FTPDOPTIONS="$FTPDOPTIONS"
else
FTPDOPTIONS="/etc/vsftpd.conf"
fi
echo "Starting vsftpd..."
vsftpd "$FTPDOPTIONS"
fi
}

Now it works as expected.

Lonnie



_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to