1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
nodebb_ynh/conf/systemd.service

21 lines
462 B
SYSTEMD
Raw Normal View History

2017-04-20 00:12:05 +02:00
[Unit]
2021-03-25 17:00:29 +01:00
Description=NodeBB
Documentation=https://docs.nodebb.org
After=system.slice multi-user.target mongod.service
2017-04-20 00:12:05 +02:00
[Service]
2021-03-25 17:00:29 +01:00
Type=forking
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__
2021-03-25 20:09:22 +01:00
#PIDFile=/path/to/nodebb/pidfile
2021-03-25 22:38:06 +01:00
Environment="NODE_ENV=production"
Environment="__YNH_NODE_LOAD_PATH__"
2021-03-25 23:04:23 +01:00
#ExecStart= loader.js --no-daemon --no-silent
2021-03-25 22:55:14 +01:00
#ExecStart= start
2021-03-25 23:04:23 +01:00
ExecStart=__YNH_NODE_LOAD_PATH__ loader.js
2017-04-20 00:12:05 +02:00
Restart=always
[Install]
WantedBy=multi-user.target