watchdogd revision 240336
1232950Stheraven#!/bin/sh 2232950Stheraven 3232950Stheraven# Copyright (c) 2003 Sean M. Kelly <smkelly@FreeBSD.org> 4232950Stheraven# All rights reserved. 5232950Stheraven# 6232950Stheraven# Redistribution and use in source and binary forms, with or without 7232950Stheraven# modification, are permitted provided that the following conditions 8232950Stheraven# are met: 9232950Stheraven# 1. Redistributions of source code must retain the above copyright 10232950Stheraven# notice, this list of conditions and the following disclaimer. 11232950Stheraven# 2. Redistributions in binary form must reproduce the above copyright 12232950Stheraven# notice, this list of conditions and the following disclaimer in the 13232950Stheraven# documentation and/or other materials provided with the distribution. 14232950Stheraven# 15232950Stheraven# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 16232950Stheraven# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17232950Stheraven# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18232950Stheraven# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 19232950Stheraven# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20232950Stheraven# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21232950Stheraven# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22232950Stheraven# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23232950Stheraven# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24232950Stheraven# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25232950Stheraven# SUCH DAMAGE. 26232950Stheraven# 27227825Stheraven# $FreeBSD: head/etc/rc.d/watchdogd 240336 2012-09-11 05:04:59Z obrien $ 28227825Stheraven# 29227825Stheraven 30227825Stheraven# PROVIDE: watchdogd 31227825Stheraven# REQUIRE: FILESYSTEMS syslogd 32227825Stheraven# KEYWORD: nojail shutdown 33227825Stheraven 34227825Stheraven. /etc/rc.subr 35227825Stheraven 36227825Stheravenname="watchdogd" 37227825Stheravenrcvar="watchdogd_enable" 38227825Stheravencommand="/usr/sbin/${name}" 39227825Stheravenpidfile="/var/run/${name}.pid" 40227825Stheraven 41227825Stheravenload_rc_config $name 42227825Stheravenrun_rc_command "$1" 43227825Stheraven