diff options
Diffstat (limited to 'ftp/ncftpd/files/ncftpd.sh.in')
-rw-r--r-- | ftp/ncftpd/files/ncftpd.sh.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ftp/ncftpd/files/ncftpd.sh.in b/ftp/ncftpd/files/ncftpd.sh.in new file mode 100644 index 000000000000..88fa2bc8bffd --- /dev/null +++ b/ftp/ncftpd/files/ncftpd.sh.in @@ -0,0 +1,28 @@ +#!/bin/sh + +# PROVIDE: ncftpd +# REQUIRE: DAEMON +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable ncftpd: +# +# ncftpd_enable="YES" +# ncftpd_flags="-dq" # Not required +# ncftpd_config="/path/to/general.cf /path/to/domain.cf" # Not required +# + +. %%RC_SUBR%% + +name="ncftpd" +rcvar=`set_rcvar` + +load_rc_config $name +: ${ncftpd_enable:="NO"} +: ${ncftpd_flags:="-dq"} +: ${ncftpd_config:="%%PREFIX%%/etc/ncftpd/general.cf %%PREFIX%%/etc/ncftpd/domain.cf"} + +command=%%PREFIX%%/sbin/${name} +required_files="${ncftpd_config}" +command_args="${ncftpd_flags} ${ncftpd_config}" + +run_rc_command "$1" |