4
description "vsftpd daemon"
5
author "Chuck Short <zulcss@ubuntu.com>"
7
start on runlevel [2345] or net-device-up IFACE!=lo
8
stop on runlevel [!2345]
12
check_standalone_mode()
14
# Return 1 if vsftpd.conf doesn't have listen yes or listen_ipv6=yes
15
CONFFILE="/etc/vsftpd.conf"
17
if [ -e "${CONFFILE}" ] && ! egrep -iq "^ *listen(_ipv6)? *= *yes" "${CONFFILE}"
19
echo "${CONFFILE}: listen disabled - service will not start"
23
[ -d /var/run/vsftpd ] || install -m 755 -o root -g root -d /var/run/vsftpd
24
[ -d /var/run/vsftpd/empty ] || install -m 755 -o root -g root -d /var/run/vsftpd/empty
25
check_standalone_mode || stop