2017-10-02 02:07:41 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Wekan, task board
|
2018-07-01 19:04:35 +02:00
|
|
|
Wants=mongodb.service
|
2020-03-21 13:40:23 +01:00
|
|
|
After=network.target
|
2017-10-02 02:07:41 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2019-03-06 04:05:48 +01:00
|
|
|
EnvironmentFile=__FINALPATH__/.env
|
2017-10-02 02:07:41 +02:00
|
|
|
WorkingDirectory=__FINALPATH__
|
2019-03-07 03:58:49 +01:00
|
|
|
ExecStart=__NODEJS_PATH__/node __FINALPATH__/main.js
|
2017-10-02 02:07:41 +02:00
|
|
|
Restart=on-failure
|
|
|
|
#StartLimitInterval=86400
|
|
|
|
#StartLimitBurst=5
|
|
|
|
RestartSec=10
|
|
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
|
|
RestartSec=10
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=__APP__
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|