CONTENTS


Lastmodified 2022-09-16 (金) 16:42:34


DEVD

オンボードNIC em0 が高負荷で落ちるので、これを監視して落ちたらシステム・リブートさせたい。

http://www.yosbits.com/opensonar/rest/man/freebsd/man/ja/man5/devd.conf.5.html

http://www.on-sky.net/~hs/misc/?Raspberry+Pi+HA+Server+with+FreeBSD

http://www.yosbits.com/opensonar/rest/man/freebsd/man/ja/man8/devd.8.html?l=ja

/etc/rc.conf

devd_enable="YES"

/etc/devd/em0.conf

#system=IFNET, subsystem=fxp0, type=LINK_UP
notify 0 {
	match "system"		"IFNET";
	match "subsystem"	"em0";
	match "type"		"LINK_DOWN";
	action "/root/bin/reboot.sh";
};

/root/bin/reboot.sh

#!/bin/sh
/sbin/reboot

Total access 2816:本日 1:昨日 0

Counter: 2816, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS