mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Add an rc.d script for stand-alone ftpd.
Document the script's controls on the rc.conf(5) manpage and touch its Dd. PR: conf/90893 MFC after: 5 days
This commit is contained in:
parent
669367a9a1
commit
24c307eac7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154645
|
@ -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).
|
||||
|
|
|
@ -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 \
|
||||
|
|
24
etc/rc.d/ftpd
Normal file
24
etc/rc.d/ftpd
Normal file
|
@ -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"
|
|
@ -24,7 +24,7 @@
|
|||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd January 12, 2006
|
||||
.Dd January 21, 2006
|
||||
.Dt RC.CONF 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -2889,6 +2889,27 @@ is set to
|
|||
these are the flags to pass to the
|
||||
.Xr sshd 8
|
||||
daemon.
|
||||
.It Va ftpd_program
|
||||
.Pq Vt str
|
||||
Path to the FTP server program
|
||||
.Pa ( /usr/libexec/ftpd
|
||||
is the default).
|
||||
.It Va ftpd_enable
|
||||
.Pq Vt bool
|
||||
Set to
|
||||
.Dq Li YES
|
||||
to start
|
||||
.Xr ftpd 8
|
||||
as a stand-alone daemon at system boot time.
|
||||
.It Va ftpd_flags
|
||||
.Pq Vt str
|
||||
If
|
||||
.Va ftpd_enable
|
||||
is set to
|
||||
.Dq Li YES ,
|
||||
these are the additional flags to pass to the
|
||||
.Xr ftpd 8
|
||||
daemon.
|
||||
.It Va watchdogd_enable
|
||||
.Pq Vt bool
|
||||
If set to
|
||||
|
|
Loading…
Reference in a new issue