watchdogd revision 180564
1252867Sdelphij#!/bin/sh 2252867Sdelphij 3252867Sdelphij# Copyright (c) 2003 Sean M. Kelly <smkelly@FreeBSD.org> 4252867Sdelphij# All rights reserved. 5252867Sdelphij# 6252867Sdelphij# Redistribution and use in source and binary forms, with or without 7252867Sdelphij# modification, are permitted provided that the following conditions 8252867Sdelphij# are met: 9252867Sdelphij# 1. Redistributions of source code must retain the above copyright 10252867Sdelphij# notice, this list of conditions and the following disclaimer. 11252867Sdelphij# 2. Redistributions in binary form must reproduce the above copyright 12252867Sdelphij# notice, this list of conditions and the following disclaimer in the 13252867Sdelphij# documentation and/or other materials provided with the distribution. 14252867Sdelphij# 15252867Sdelphij# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 16252867Sdelphij# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17252867Sdelphij# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18252867Sdelphij# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 19252867Sdelphij# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20252867Sdelphij# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21252867Sdelphij# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22252867Sdelphij# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23252867Sdelphij# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24252867Sdelphij# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25252867Sdelphij# SUCH DAMAGE. 26252867Sdelphij# 27252867Sdelphij# $FreeBSD: head/etc/rc.d/watchdogd 180564 2008-07-16 19:50:29Z dougb $ 28252867Sdelphij# 29252867Sdelphij 30252867Sdelphij# PROVIDE: watchdogd 31252867Sdelphij# REQUIRE: DAEMON cleanvar 32252867Sdelphij# KEYWORD: nojail shutdown 33252867Sdelphij 34252867Sdelphij. /etc/rc.subr 35252867Sdelphij 36252867Sdelphijname="watchdogd" 37252867Sdelphijrcvar="`set_rcvar`" 38252867Sdelphijcommand="/usr/sbin/${name}" 39252867Sdelphijpidfile="/var/run/${name}.pid" 40252867Sdelphij 41252867Sdelphijload_rc_config $name 42252867Sdelphijrun_rc_command "$1" 43252867Sdelphij