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