mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
The removal of the udev rules highlighted that although it has been replaced by "xl devd" there isn't an initscript to replace it. To enable this add a --pidfile option to xl devd. Tested on Linux by running the script in dom0 and checking the daemon was started/stopped, but not in an actual driver domain environment since I don't have one conveniently available. I also checked that running without the --pidfile option still works. Scripts mainly cribbed from the xencommons for each platform. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Roger Pau Monné <roger.pau@citrix.com> Cc: Konrad Rzeszutek Wilk <konrad@darnok.org> Cc: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
48 lines
1009 B
Makefile
48 lines
1009 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
# Xen script dir and scripts to go there.
|
|
XEN_SCRIPTS =
|
|
XEN_SCRIPTS += block
|
|
XEN_SCRIPTS += vif-bridge
|
|
XEN_SCRIPTS += vif-ip
|
|
|
|
XEN_SCRIPT_DATA =
|
|
XEN_RCD_PROG = rc.d/xencommons rc.d/xendomains rc.d/xen-watchdog rc.d/xendriverdomain
|
|
|
|
.PHONY: all
|
|
all:
|
|
|
|
.PHONY: build
|
|
build:
|
|
|
|
.PHONY: install
|
|
install: install-scripts install-rcd
|
|
|
|
.PHONY: install-scripts
|
|
install-scripts:
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
|
|
set -e; for i in $(XEN_SCRIPTS); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
set -e; for i in $(XEN_SCRIPT_DATA); \
|
|
do \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
|
|
.PHONY: install-rcd
|
|
install-rcd:
|
|
$(INSTALL_DIR) $(DESTDIR)$(INITD_DIR)
|
|
set -e; for i in $(XEN_RCD_PROG); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(INITD_DIR); \
|
|
done
|
|
$(INSTALL_DATA) ../common/hotplugpath.sh $(DESTDIR)$(INITD_DIR)/xen-hotplugpath.sh
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|