[Zrouter-src] ZRouter.org: push to ZRouter profiles/watchdogd/files/etc/rc.d/w...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Fri May 4 10:09:37 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/7ceeb3c10c08
changeset: 404:7ceeb3c10c08
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Fri May 04 12:55:00 2012 +0300
description:
Add watchdogd profile.
Include watchdogd and rc.d script for it.
TODO: auto include watchdog device driver.

diffstat:

 profiles/watchdogd/files/etc/rc.d/watchdogd |  15 +++++++++++++++
 profiles/watchdogd/profile.descr            |   2 ++
 profiles/watchdogd/profile.mk               |   2 ++
 3 files changed, 19 insertions(+), 0 deletions(-)

diffs (32 lines):

diff -r f2692af72249 -r 7ceeb3c10c08 profiles/watchdogd/files/etc/rc.d/watchdogd
--- /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"
diff -r f2692af72249 -r 7ceeb3c10c08 profiles/watchdogd/profile.descr
--- /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
diff -r f2692af72249 -r 7ceeb3c10c08 profiles/watchdogd/profile.mk
--- /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


More information about the Zrouter-src mailing list