2018-12-14 19:24:55 +01:00
|
|
|
[Unit]
|
2022-02-13 19:55:00 +01:00
|
|
|
Description=__APP__
|
2018-12-14 19:24:55 +01:00
|
|
|
Requires=postgresql.service
|
|
|
|
After=network.target postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2022-02-13 19:55:00 +01:00
|
|
|
SyslogIdentifier=__APP__
|
2018-12-14 19:24:55 +01:00
|
|
|
PermissionsStartOnly=true
|
2022-02-13 19:55:00 +01:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2018-12-14 19:24:55 +01:00
|
|
|
Environment=PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
2022-02-13 19:55:00 +01:00
|
|
|
ExecStart=__BIN_FILE__ --config __CONF_FILE__ --logfile /var/log/__APP__.log
|
2018-12-14 19:24:55 +01:00
|
|
|
Restart=always
|
|
|
|
RestartSec=3
|
|
|
|
StandardOutput=journal+console
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|