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

26 lines
615 B
SYSTEMD
Raw Normal View History

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
User=root
Group=root
2021-03-01 19:00:42 +01:00
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