Add systemd service unit
This commit is contained in:
parent
cbfe54c644
commit
782923c83c
2 changed files with 12 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -5,3 +5,4 @@ all: install
|
||||||
install:
|
install:
|
||||||
install -m 755 --owner root bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
install -m 755 --owner root bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
||||||
install -m 755 --owner root bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
install -m 755 --owner root bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
||||||
|
install -m 644 --owner root uncloud-init.service /etc/systemd/system/uncloud-init.service
|
||||||
|
|
11
uncloud-init.service
Normal file
11
uncloud-init.service
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Initialize an Uncloud virtual machine
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/local/bin/uncloud-init
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=network.target
|
Loading…
Reference in a new issue