Add systemd service unit

This commit is contained in:
fnux 2020-01-23 15:13:33 +01:00
parent cbfe54c644
commit 782923c83c
2 changed files with 12 additions and 0 deletions

View file

@ -5,3 +5,4 @@ all: install
install:
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 644 --owner root uncloud-init.service /etc/systemd/system/uncloud-init.service

11
uncloud-init.service Normal file
View 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