fix: add missing parameters to systemd unit

This commit is contained in:
George Rawlinson 2021-09-11 19:56:33 +00:00
parent 87fce4d686
commit ade122099c
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -1,9 +1,15 @@
[Unit]
Description=Create %i images for LXD
Wants=network-online.target lxd.service
Requires=network-online.target lxd.service
After=network-online.target lxd.service
[Service]
Type=oneshot
ExecStart=/usr/bin/distrobuilder-create %i
User=distrobuilder-create
Group=distrobuilder-create
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target