Ubuntu LTS - VsFTPd- can't found sysvinit script (/etc/init.d/vsftpd)

  • Hello,
    Like a title
    I upgrade imscp to 1.2.17 and change proftpd to vsftpd on ubuntu lts.But I can't found vsftpd service at /etc/init.d
    I make sure it's have /etc/vsftpd.conf this file and vsftpd service has listening.But if I want restart vsftpd service.I can't found /etc/init.d/vsftpd
    Is this bug?

  • @akong7777


    Good morning,


    Which Ubuntu LTS version you use exactly?


    BTW: You must not manage services by calling /etc/init.d/* scripts directly. You must use the service command.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    To answer your question: There is no longer a sysvinit script for VsFTPd under Ubuntu (Trusty Thar). There is only an Upstart job and a systemd service unit. You should learn a bit more about different init systems (sysvinit, Upstart, systemd).

    Shell-Script
    1. root@trusty:~# ls -la /etc/init.d |grep vsftpdroot@trusty:~# ls -la /etc/init |grep vsftpd-rw-r--r-- 1 root root 737 mai 16 2013 vsftpd.confroot@trusty:~# ls -la /etc/systemd/system |grep vsftpd-rw-r--r-- 1 root root 262 mai 1 2014 vsftpd.serviceroot@trusty:~#

    To manage the vsftpd service, just do:

    Shell-Script
    1. # service vsftpd <action>

    For instance:

    Shell-Script
    1. root@trusty:~# service vsftpd status
    2. vsftpd start/running, process 643
    3. root@trusty:~# service vsftpd stop
    4. vsftpd stop/waiting
    5. root@trusty:~# service vsftpd start
    6. vsftpd start/running, process 1813
    7. root@trusty:~# service vsftpd restart
    8. vsftpd stop/waiting
    9. vsftpd start/running, process 1825

    About default init system on Debian/Ubuntu


    Debian

    • Debian Wheezy: Default init system is sysvinit
    • Debian Jessie: Default init system is systemd (with sysvinit compatibility layer)
    • Debian Testing (Stretch): Default init system is systemd (with sysvinit compatibility layer)

    Ubuntu

    • Ubuntu 12.04 (Precise Pangolin) LTS: Default init system is Upstart (with sysvinit compatibility layer)
    • Ubuntu 14.04 (Trusty Thar) LTS: Default init system is Upstart (with sysvinit compatibility layer)
    • Ubuntu 16.04 (Xenial Xerus) LTS: Default init system is systemd (with sysvinit compatibility layer)

    with sysvinit compatibility layer mean that if a package provides a sysvinit script (/etc/init.d/<services>), it will be used if there is no systemd service unit file or Upstart job configuration file, depending on the system init in use on your system.


    Note: Debian Stretch and Ubuntu 16.04 LTS were not released yet.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206