Package: vsftpd
Version: 2.3.5-3
Severity: wishlist
Tags: patch

Hi!

vsftpd does not source /lib/lsb/init-functions. This makes it
incompatible with systemd. By just sourcing this file, you would allow
systemd to hijack manual start using /etc/init.d/vsftpd start (or
manual stop, reload, etc). 

I am no systemd specialist, but here is a tiny systemd unit file that
would allow vsftpd to be run by systemd without using the SysVRC init
script:

[Unit]
Description=Vsftpd ftp daemon
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf
ExecReload=/bin/kill -HUP $MAINPID
ReadOnlyDirectories=/var/run/vsftpd/empty

[Install]
WantedBy=multi-user.target


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vsftpd depends on:
ii  adduser                3.113+nmu1
ii  debconf [debconf-2.0]  1.5.42
ii  libc6                  2.13-27
ii  libcap2                1:2.22-1
ii  libpam-modules         1.1.3-7
ii  libpam0g               1.1.3-7
ii  libssl1.0.0            1.0.1a-3
ii  libwrap0               7.6.q-23
ii  netbase                4.47

Versions of packages vsftpd recommends:
ii  logrotate  3.8.1-1

vsftpd suggests no packages.

-- Configuration Files:
/etc/vsftpd.conf changed [not included]

-- debconf information:
  vsftpd/directory: /srv/ftp
  vsftpd/username: ftp



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to