aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf3
-rwxr-xr-xetc/rc.d/Makefile2
-rw-r--r--etc/rc.d/ftpd24
3 files changed, 28 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index a6e5eba156eb..8407c333d183 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -227,6 +227,9 @@ pppoed_interface="fxp0" # The interface that pppoed runs on.
sshd_enable="NO" # Enable sshd
sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one.
sshd_flags="" # Additional flags for sshd.
+ftpd_enable="NO" # Enable stand-alone ftpd.
+ftpd_program="/usr/libexec/ftpd" # Path to ftpd, if you want a different one.
+ftpd_flags="" # Additional flags to stand-alone ftpd.
### Network daemon (NFS): All need rpcbind_enable="YES" ###
amd_enable="NO" # Run amd service with $amd_flags (or NO).
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index c8ab8fd2d385..04b5c8f2d25c 100755
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -9,7 +9,7 @@ FILES= DAEMON LOGIN NETWORKING SERVERS \
devd devfs dhclient \
dmesg dumpon \
early.sh encswap \
- fsck \
+ fsck ftpd \
gbde geli geli2 \
hcsecd \
hostname \
diff --git a/etc/rc.d/ftpd b/etc/rc.d/ftpd
new file mode 100644
index 000000000000..4837815f75bd
--- /dev/null
+++ b/etc/rc.d/ftpd
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ftpd
+# REQUIRE: LOGIN cleanvar
+
+. /etc/rc.subr
+
+name="ftpd"
+rcvar=`set_rcvar`
+command="/usr/libexec/${name}"
+pidfile="/var/run/${name}.pid"
+start_precmd=ftpd_prestart
+
+ftpd_prestart()
+{
+ rc_flags="-D ${rc_flags}"
+ return 0
+}
+
+load_rc_config $name
+run_rc_command "$1"