Index: etc/rc.d/mfid =================================================================== --- /dev/null +++ etc/rc.d/mfid @@ -0,0 +1,21 @@ +#!/bin/sh +# +# $FreeBSD$ + +# PROVIDE: mfid +# REQUIRE: root ldconfig devfs syslogd mail +# KEYWORD: nojail noyroot shutdown + +. /etc/rc.subr + +name=mfid +rcvar=mfid_enable +load_rc_config $name + +raid_alert_mailto=${mfid_alert_mailto:-"root@localhost"} +raid_alert_timeout=${mfid_alert_timeout:-15} + +command="/usr/sbin/mfid -d -t ${raid_alert_timeout} ${raid_alert_mailto}" +stop_cmd="killall -9 mfid > /dev/null 2>&1" + +run_rc_command "$1"