mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl LIBDIR | xargs sed -i 's@LIBDIR@libdir@g' Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
24 lines
406 B
Bash
24 lines
406 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: xen-watchdog
|
|
# REQUIRE: DAEMON
|
|
#
|
|
# description: Run domain watchdog daemon
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
DIR=$(dirname "$0")
|
|
. "${DIR}/xen-hotplugpath.sh"
|
|
|
|
LD_LIBRARY_PATH="${libdir}"
|
|
export LD_LIBRARY_PATH
|
|
|
|
name="xenwatchdog"
|
|
rcvar=$name
|
|
command="${sbindir}/xenwatchdogd"
|
|
start_cmd="echo Starting ${name}. && PATH=${PATH}:${sbindir} ${command} 30 15"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|