mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
20 lines
446 B
Text
20 lines
446 B
Text
|
[Unit]
|
||
|
Description={{ app }}
|
||
|
Requires=postgresql.service
|
||
|
After=network.target postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
SyslogIdentifier={{ app }}
|
||
|
PermissionsStartOnly=true
|
||
|
User={{ app }}
|
||
|
Group={{ app }}
|
||
|
Environment=PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
||
|
ExecStart={{ bin_file }} --config {{ conf_file }} --logfile /var/log/{{ app }}.log
|
||
|
Restart=always
|
||
|
RestartSec=3
|
||
|
StandardOutput=journal+console
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|