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-07-08 18:06:56 +02:00
|
|
|
|
2017-04-20 00:12:05 +02:00
|
|
|
[Service]
|
2021-03-25 17:00:29 +01:00
|
|
|
Type=forking
|
2017-07-08 18:06:56 +02:00
|
|
|
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
|