mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
28 lines
680 B
Desktop File
28 lines
680 B
Desktop File
[Unit]
|
|
Description=Wekan, task board
|
|
Wants=mongod.service
|
|
After=network.target mongod.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP__
|
|
Group=__APP__
|
|
ExecStartPre=__NODEJS__
|
|
Environment="PATH=__ENV_PATH__"
|
|
Environment=NODE_ENV=production
|
|
Environment=MONGO_URL=mongodb://127.0.0.1:27017/__DB_NAME__
|
|
Environment=ROOT_URL=https://__DOMAIN__:__PORT____URI__ PORT=__PORT__
|
|
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
|