2017-10-02 02:07:41 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Wekan, task board
|
2018-07-01 19:04:35 +02:00
|
|
|
Wants=mongodb.service
|
|
|
|
After=network.target mongodb.service
|
2017-10-02 02:07:41 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
Environment="PATH=__ENV_PATH__"
|
|
|
|
Environment=NODE_ENV=production
|
|
|
|
Environment=MONGO_URL=mongodb://127.0.0.1:27017/__DB_NAME__
|
2019-02-05 22:49:19 +01:00
|
|
|
Environment=ROOT_URL=https://__DOMAIN_URI__ PORT=__PORT__
|
2017-10-02 02:07:41 +02:00
|
|
|
WorkingDirectory=__FINALPATH__
|
|
|
|
ExecStart=/opt/node_n/bin/node __FINALPATH__/main.js
|
|
|
|
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
|