summaryrefslogtreecommitdiff
path: root/ftp/ncftpd/files/ncftpd.sh.in
blob: 5c4d30935f323f4a907535134ec80195fe9fa3a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
#

. /etc/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"