1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# PROVIDE: ftpd 7# REQUIRE: LOGIN FILESYSTEMS 8# KEYWORD: shutdown 9 10. /etc/rc.subr 11 12name="ftpd" 13desc="Internet File Transfer Protocol daemon" 14rcvar="ftpd_enable" 15command="/usr/libexec/${name}" 16pidfile="/var/run/${name}.pid" 17start_precmd=ftpd_prestart 18 19ftpd_prestart() 20{ 21 rc_flags="-D ${rc_flags}" 22 return 0 23} 24 25load_rc_config $name 26run_rc_command "$1" 27