1116874Ssmkelly#!/bin/sh 2116874Ssmkelly 3116874Ssmkelly# Copyright (c) 2003 Sean M. Kelly <smkelly@FreeBSD.org> 4116874Ssmkelly# All rights reserved. 5116874Ssmkelly# 6116874Ssmkelly# Redistribution and use in source and binary forms, with or without 7116874Ssmkelly# modification, are permitted provided that the following conditions 8116874Ssmkelly# are met: 9116874Ssmkelly# 1. Redistributions of source code must retain the above copyright 10116874Ssmkelly# notice, this list of conditions and the following disclaimer. 11116874Ssmkelly# 2. Redistributions in binary form must reproduce the above copyright 12116874Ssmkelly# notice, this list of conditions and the following disclaimer in the 13116874Ssmkelly# documentation and/or other materials provided with the distribution. 14116874Ssmkelly# 15116874Ssmkelly# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 16116874Ssmkelly# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17116874Ssmkelly# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18116874Ssmkelly# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 19116874Ssmkelly# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20116874Ssmkelly# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21116874Ssmkelly# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22116874Ssmkelly# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23116874Ssmkelly# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24116874Ssmkelly# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25116874Ssmkelly# SUCH DAMAGE. 26116874Ssmkelly# 27116874Ssmkelly# $FreeBSD$ 28116874Ssmkelly# 29116874Ssmkelly 30116874Ssmkelly# PROVIDE: watchdogd 31240336Sobrien# REQUIRE: FILESYSTEMS syslogd 32180564Sdougb# KEYWORD: nojail shutdown 33116874Ssmkelly 34116874Ssmkelly. /etc/rc.subr 35116874Ssmkelly 36116874Ssmkellyname="watchdogd" 37230099Sdougbrcvar="watchdogd_enable" 38116874Ssmkellycommand="/usr/sbin/${name}" 39116874Ssmkellypidfile="/var/run/${name}.pid" 40116874Ssmkelly 41116874Ssmkellyload_rc_config $name 42116874Ssmkellyrun_rc_command "$1" 43