2021-03-01 14:53:57 +01:00
|
|
|
[Unit]
|
2021-03-01 19:00:42 +01:00
|
|
|
Description=LXD Container Hypervisor
|
|
|
|
After=network-online.target
|
|
|
|
Requires=network-online.target __APP__.socket
|
|
|
|
Documentation=man:lxd(1)
|
2021-03-01 14:53:57 +01:00
|
|
|
|
|
|
|
[Service]
|
2021-03-01 19:00:42 +01:00
|
|
|
Environment=LXD_OVMF_PATH=/usr/share/ovmf/x64
|
|
|
|
ExecStart=/usr/local/bin/__APP__ --group=__APP__ --logfile=/var/log/__APP__/__APP__.log
|
|
|
|
ExecStartPost=/usr/local/bin/__APP__ waitready --timeout=600
|
|
|
|
ExecStop=/usr/local/bin/__APP__ shutdown
|
|
|
|
TimeoutStartSec=600s
|
|
|
|
TimeoutStopSec=30s
|
|
|
|
Restart=on-failure
|
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=infinity
|
|
|
|
LimitCORE=infinity
|
|
|
|
TasksMax=infinity
|
|
|
|
Delegate=yes
|
|
|
|
KillMode=process
|
2021-03-01 14:53:57 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|