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

add User= and Group= to the systemd service

This commit is contained in:
Kay0u 2021-03-16 14:12:32 +01:00
parent 2918bde519
commit 529dbee3c4
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -9,6 +9,8 @@ Environment=LXD_OVMF_PATH=/usr/share/ovmf/x64
ExecStart=/usr/local/bin/__APP__ --group=__APP__ --logfile=/var/log/__APP__/__APP__.log ExecStart=/usr/local/bin/__APP__ --group=__APP__ --logfile=/var/log/__APP__/__APP__.log
ExecStartPost=/usr/local/bin/__APP__ waitready --timeout=600 ExecStartPost=/usr/local/bin/__APP__ waitready --timeout=600
ExecStop=/usr/local/bin/__APP__ shutdown ExecStop=/usr/local/bin/__APP__ shutdown
User=root
Group=root
TimeoutStartSec=600s TimeoutStartSec=600s
TimeoutStopSec=30s TimeoutStopSec=30s
Restart=on-failure Restart=on-failure