aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/freebsd-ftpd/files/ftpd.in
blob: ef830b02f817bae52ae7b1b341e131853ab26293 (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
#!/bin/sh

# PROVIDE: ftpd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to run freebsd-ftpd
# as a standalone daemon:
#
# ftpd_enable (bool):		    Run freebsd-ftpd FTP server (or NO).
# ftpd_flags (str):		    Use this for flags OTHER than -D

. /etc/rc.subr

load_rc_config $name

name="ftpd"
rcvar="ftpd_enable"

: ${ftpd_enable=NO}

command="/usr/local/libexec/${name}"
command_args="-D"

run_rc_command "$1"