tools: xen-watchdog init script
PATCH 1/1 tools: xen-watchdog init script
Hi!
Attached patch renames xen-watchdog init script to xen-watchdog-linux. Add xen-watchdog-netbsd init script.
Install them as xen-watchdog depending on the underlying OS.
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
tools/misc/Makefile +5 -1
@@ -43,7 +43,11 @@ install: build $(INSTALL_PYTHON_PROG) $(INSTALL_SBIN) $(DESTDIR)$(SBINDIR) ifeq ($(CONFIG_Linux),y) $(INSTALL_DIR) $(DESTDIR)$(CONFIG_DIR)/init.d - $(INSTALL_PROG) xen-watchdog $(DESTDIR)$(CONFIG_DIR)/init.d + $(INSTALL_PROG) xen-watchdog-linux $(DESTDIR)$(CONFIG_DIR)/init.d/xen-watchdog +endif +ifeq ($(CONFIG_NetBSD),y) + $(INSTALL_DIR) $(DESTDIR)$(CONFIG_DIR)/rc.d + $(INSTALL_PROG) xen-watchdog-netbsd $(DESTDIR)$(CONFIG_DIR)/rc.d/xen-watchdog endif set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d install-recurse; done
tools/misc/xen-watchdog deleted +0 -59
59 lines not on this page · raw message
tools/misc/xen-watchdog-linux new file +59 -0
59 lines not on this page · raw message
tools/misc/xen-watchdog-netbsd new file +23 -0
@@ -0,0 +1,23 @@ +#!/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"
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel