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
|
2019-01-06 00:43:22 +01:00
|
|
|
Environment=NODE_ENV=production
|
2021-03-25 20:09:22 +01:00
|
|
|
#ExecStart=__NODE__/node loader.js --no-daemon --no-silent
|
|
|
|
ExecStart=__YNH_NPM__ start
|
2017-04-20 00:12:05 +02:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|