summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftp/vsftpd/files/vsftpd.sh.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/ftp/vsftpd/files/vsftpd.sh.in b/ftp/vsftpd/files/vsftpd.sh.in
index 10090aac25a6..c03d75efe328 100644
--- a/ftp/vsftpd/files/vsftpd.sh.in
+++ b/ftp/vsftpd/files/vsftpd.sh.in
@@ -19,11 +19,12 @@ name="vsftpd"
rcvar=`set_rcvar`
load_rc_config "$name"
-: ${vsftpd_enable="NO"}
-: ${vsftpd_flags=""}
+: ${vsftpd_enable:="NO"}
+: ${vsftpd_flags:=""}
command="%%PREFIX%%/libexec/$name ${vsftpd_flags}"
required_files="%%PREFIX%%/etc/$name.conf"
+start_precmd="vsftpd_check"
vsftpd_check()
{
@@ -41,6 +42,4 @@ vsftpd_check()
fi
}
-vsftpd_check
-
run_rc_command "$1"