changeset 404:7ceeb3c10c08

Add watchdogd profile. Include watchdogd and rc.d script for it. TODO: auto include watchdog device driver.
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 04 May 2012 12:55:00 +0300
parents f2692af72249
children 85912da1ab42
files profiles/watchdogd/files/etc/rc.d/watchdogd profiles/watchdogd/profile.descr profiles/watchdogd/profile.mk
diffstat 3 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/watchdogd/files/etc/rc.d/watchdogd	Fri May 04 12:55:00 2012 +0300
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# PROVIDE: watchdogd
+# REQUIRE: DAEMON cleanvar
+# KEYWORD: nojail shutdown
+
+. /etc/rc.subr
+
+name="watchdogd"
+rcvar="`set_rcvar`"
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/watchdogd/profile.descr	Fri May 04 12:55:00 2012 +0300
@@ -0,0 +1,2 @@
+watchdogd
+Include watchdogd and rc.d script. watchdogd periodically update SoC watchdog counter, if software freeze, then watchdog H/W reset system.
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/watchdogd/profile.mk	Fri May 04 12:55:00 2012 +0300
@@ -0,0 +1,2 @@
+WORLD_SUBDIRS+= \
+	usr.sbin/watchdogd