blob: 4d7da531966bc25eb18998577a2593dba22fe6c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# PROVIDE: mptd
# REQUIRE: dumpon root ldconfig devfs syslogd mail
# KEYWORD: nojail noyroot shutdown
. /etc/rc.subr
name=mptd
rcvar=mptd_enable
load_rc_config $name
raid_alert_mailto=${mptd_alert_mailto:-"root@localhost"}
start_cmd=mptd_start
stop_cmd="killall -9 mptd > /dev/null 2>&1"
mptd_start()
{
if [ -x "%%PREFIX%%/sbin/mptd" -a -e "/dev/mpt0" ]; then
echo "Starting mptd."
%%PREFIX%%/sbin/mptd ${raid_alert_mailto}
fi
}
run_rc_command "$1"
|