1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lxd_ynh.git synced 2024-09-03 19:45:53 +02:00
lxd_ynh/conf/systemd.service

25 lines
615 B
Desktop File

[Unit]
Description=LXD Container Hypervisor
After=network-online.target
Requires=network-online.target __APP__.socket
Documentation=man:lxd(1)
[Service]
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
User=root
Group=root
TimeoutStartSec=600s
TimeoutStopSec=30s
Restart=on-failure
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
Delegate=yes
KillMode=process
[Install]
WantedBy=multi-user.target