diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-01-21 18:08:16 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-01-21 18:08:16 +0000 |
| commit | 24c307eac7850ebc039f43c81bd2a96ba37270a6 (patch) | |
| tree | d7246ca0ba1c3ae72939db384ac9b8c967f60df3 /etc | |
| parent | 669367a9a16fe10c78701957461156a1e2c4edf5 (diff) | |
Notes
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/defaults/rc.conf | 3 | ||||
| -rwxr-xr-x | etc/rc.d/Makefile | 2 | ||||
| -rw-r--r-- | etc/rc.d/ftpd | 24 |
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" |
