Results 1 to 2 of 2
I have installed vsftpd from source file. I am running it in stand alone mode. It is successful.
I want to run it automatically when the system boots. So I ...
- 03-30-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
vsftpd boot time start
I have installed vsftpd from source file. I am running it in stand alone mode. It is successful.
I want to run it automatically when the system boots. So I issued chkconfig command. here is the output.
-----------------------
[root@localhost ~]# chkconfig --add vsftpd
service vsftpd does not support chkconfig
-----------------------
So I created an init script as shown below.
-----------------------------------------
#!/bin/sh
# chkconfig: 12345 69 68
. /etc/init.d/functions
if [ -f /etc/sysconfig/vsftpd ] ; then
. /etc/sysconfig/vsftpd
fi
case "$1" in
start)
echo -n "start service vsftpd"
/usr/local/sbin/vsftpd start
;;
stop)
echo -n "stop service vsftpd"
/usr/local/sbin/vsftpd stop
;;
restart)
echo -n "restart service vsftpd"
/usr/local/sbin/vsftpd restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
----------------------------------
I tried the command [root@localhost ~]# /etc/init.d/vsftpd start . The result is
Usage: /etc/init.d/vsftpd {start|stop|restart}
I issued the following command.
[root@localhost ~]# chkconfig --level 5 vsftopd on
error reading information on service vsftopd: No such file or directory
It is not working at all.
Please help me.
Thank you.
- 03-30-2009 #2Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
I'll assume you've fixed this

But anyway:
Your script is vsftpd and you've run chkconfig against vsftopdI tried the command [root@localhost ~]# /etc/init.d/vsftpd start . The result is
Usage: /etc/init.d/vsftpd {start|stop|restart}
I issued the following command.
[root@localhost ~]# chkconfig --level 5 vsftopd on
error reading information on service vsftopd: No such file or directory
RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.


Reply With Quote