From: David Scott Date: Fri, 18 Dec 2009 20:48:35 +0000 (+0000) Subject: CA-33440: Add an init.d script for the fork/exec daemon. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=052891d3c70b433adcf4f3ecb66800a251263eab;p=xcp%2Fxen-api-libs.git CA-33440: Add an init.d script for the fork/exec daemon. Signed-off-by: David Scott --- diff --git a/Makefile.in b/Makefile.in index 3853f2c..92ea842 100644 --- a/Makefile.in +++ b/Makefile.in @@ -29,6 +29,7 @@ endif ifeq ($(HAVE_DEVICE_MAPPER),1) $(MAKE) -C camldm endif + $(MAKE) -C forking_executioner .PHONY: allxen allxen: @@ -63,6 +64,7 @@ endif ifeq ($(HAVE_DEVICE_MAPPER),1) $(MAKE) -C camldm install endif + $(MAKE) -C forking_executioner install installxen: ifeq ($(HAVE_XEN),1) @@ -96,6 +98,7 @@ endif ifeq ($(HAVE_DEVICE_MAPPER),1) $(MAKE) -C camldm uninstall endif + $(MAKE) -C forking_executioner uninstall uninstallxen: ifeq ($(HAVE_XEN),1) @@ -120,6 +123,7 @@ bininstall: $(MAKE) -C sexpr bininstall $(MAKE) -C stdext bininstall $(MAKE) -C close-and-exec bininstall + $(MAKE) -C forking_executioner bininstall binuninstall: $(MAKE) -C pciutil binuninstall @@ -127,6 +131,7 @@ binuninstall: $(MAKE) -C sexpr binuninstall $(MAKE) -C stdext binuninstall $(MAKE) -C close-and-exec binuninstall + $(MAKE) -C forking_executioner binuninstall .PHONY: doc doc: @@ -148,6 +153,7 @@ doc: $(MAKE) -C stunnel doc $(MAKE) -C xsrpc doc $(MAKE) -C mmap doc + $(MAKE) -C forking_executioner doc .PHONY: clean clean: diff --git a/forking_executioner/Makefile b/forking_executioner/Makefile index 4ae717e..4c586f7 100644 --- a/forking_executioner/Makefile +++ b/forking_executioner/Makefile @@ -7,6 +7,7 @@ OCAMLOPT = ocamlopt LDFLAGS = -cclib -L./ LIBEXEC = "/opt/xensource/libexec" +INIT_D = "/etc/init.d" VERSION := $(shell hg parents --template "{rev}" 2>/dev/null || echo 0.0) OCAMLOPTFLAGS = -g -dtypes @@ -53,8 +54,10 @@ install: .PHONY: bininstall bininstall: path = $(DESTDIR)$(LIBEXEC) bininstall: all - mkdir -p $(path) - $(IPROG) $(PROGRAMS) $(path) + mkdir -p $(DESTDIR)$(LIBEXEC) + $(IPROG) $(PROGRAMS) $(DESTDIR)$(LIBEXEC) + mkdir -p $(DESTDIR)$(INIT_D) + $(IPROG) init.d-fe $(DESTDIR)$(INIT_D)/fe .PHONY: uninstall uninstall: @@ -62,6 +65,7 @@ uninstall: .PHONY: binuninstall binuninstall: rm -f $(DESTDIR)$(LIBEXEC)$(PROGRAMS) + rm -f $(DESTDIR)$(INIT_D)/fe .PHONY: doc doc: