Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    ygk
    ygk is offline
    Just 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.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    I'll assume you've fixed this

    But anyway:

    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
    Your script is vsftpd and you've run chkconfig against vsftopd

    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •