mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
25 lines
587 B
Text
25 lines
587 B
Text
[Unit]
|
|
Description=Wekan Server
|
|
Wants=mongod.service
|
|
After=network.target mongod.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=WEKAN_INSTALL_PATH
|
|
ExecStart=WEKAN_NODEJS_PATH main.js
|
|
Environment=NODE_ENV=production
|
|
Environment=MONGO_URL=mongodb://127.0.0.1:27017/WEKAN_DB_NAME
|
|
Environment=ROOT_URL=http://127.0.0.1:WEKAN_PORT/ PORT=WEKAN_PORT
|
|
User=wekan
|
|
Restart=on-failure
|
|
#StartLimitInterval=86400
|
|
#StartLimitBurst=5
|
|
RestartSec=10
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
RestartSec=10
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=wekan
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|