diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-06-09 13:29:22 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-06-09 13:29:22 +0100 |
commit | bce846e928e960e912d151ee041bc736e615eab5 (patch) | |
tree | 8100ca7cb72d2b88e063615914684171f4ce145d /tools/misc | |
parent | d2a6ffdc548bac8be83e4be49ced5474b2b1acd2 (diff) | |
download | xen-bce846e928e960e912d151ee041bc736e615eab5.tar.gz xen-bce846e928e960e912d151ee041bc736e615eab5.tar.bz2 xen-bce846e928e960e912d151ee041bc736e615eab5.zip |
xen-watchdog: Move init script to OS-dep dir and implement for netbsd
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/Makefile | 4 | ||||
-rw-r--r-- | tools/misc/xen-watchdog | 59 |
2 files changed, 0 insertions, 63 deletions
diff --git a/tools/misc/Makefile b/tools/misc/Makefile index f8709562e2..843de9d3ec 100644 --- a/tools/misc/Makefile +++ b/tools/misc/Makefile @@ -41,10 +41,6 @@ install: build $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) $(INSTALL_PYTHON_PROG) $(INSTALL_BIN) $(DESTDIR)$(BINDIR) $(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 -endif set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d install-recurse; done .PHONY: clean diff --git a/tools/misc/xen-watchdog b/tools/misc/xen-watchdog deleted file mode 100644 index 417b451922..0000000000 --- a/tools/misc/xen-watchdog +++ /dev/null @@ -1,59 +0,0 @@ -#! /bin/bash -# -# xen-watchdog -# -# chkconfig: 2345 21 79 -# description: Run domain watchdog daemon -# - -# Source function library. -. /etc/init.d/functions - -start() { - local r - base="watchdogd" - echo -n $"Starting domain watchdog daemon: " - - /usr/sbin/xenwatchdogd 30 15 - r=$? - [ "$r" -eq 0 ] && success $"$base startup" || failure $"$base startup" - echo - - return $r -} - -stop() { - local r - base="watchdogd" - echo -n $"Stopping domain watchdog daemon: " - - killall -USR1 watchdogd 2>/dev/null - r=$? - [ "$r" -eq 0 ] && success $"$base stop" || failure $"$base stop" - echo - - return $r -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - stop - start - ;; - status) - ;; - condrestart) - stop - start - ;; - *) - echo $"Usage: $0 {start|stop|status|restart|condrestart}" - exit 1 -esac - |