mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-10 16:05:49 +00:00
add cbc_lifecycle service systemd support
Now cbc_attach service installed by default and thus we can enable cbc_lifecycle service too. Signed-off-by: Alek Du <alek.du@intel.com> Reviewed-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
parent
c4bd0db1ca
commit
cbb692d910
@ -7,6 +7,7 @@ $(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c $(TOOLS_OUT)/libacrn-mngr.a
|
|||||||
clean:
|
clean:
|
||||||
rm $(OUT_DIR)/cbc_lifecycle
|
rm $(OUT_DIR)/cbc_lifecycle
|
||||||
|
|
||||||
install: $(OUT_DIR)/cbc_lifecycle
|
install: $(OUT_DIR)/cbc_lifecycle cbc_lifecycle.service
|
||||||
install -d $(DESTDIR)/usr/bin
|
install -d $(DESTDIR)/usr/bin
|
||||||
install -t $(DESTDIR)/usr/bin $^
|
install -t $(DESTDIR)/usr/bin $<
|
||||||
|
install -p -D -m 0644 cbc_lifecycle.service $(DESTDIR)/usr/lib/systemd/system/
|
||||||
|
12
misc/cbc_lifecycle/cbc_lifecycle.service
Normal file
12
misc/cbc_lifecycle/cbc_lifecycle.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=CBC lifecycle service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/cbc_lifecycle
|
||||||
|
Restart=always
|
||||||
|
Type=notify
|
||||||
|
ExecStop=/usr/bin/killall -s TERM cbc_lifecycle
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user