1#!/bin/sh
2#
3# PROVIDE: xen-watchdog
4# REQUIRE: DAEMON
5#
6# description: Run domain watchdog daemon
7#
8
9. /etc/rc.subr
10
11DIR=$(dirname "$0")
12. "${DIR}/xen-hotplugpath.sh"
13
14LD_LIBRARY_PATH="${libdir}"
15export LD_LIBRARY_PATH
16
17name="xenwatchdog"
18rcvar=$name
19command="${sbindir}/xenwatchdogd"
20start_cmd="echo Starting ${name}. && PATH=${PATH}:${sbindir} ${command} 30 15"
21
22load_rc_config $name
23run_rc_command "$1"
24