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__
|
2021-04-07 19:47:26 +02:00
|
|
|
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=nodebb
|
|
|
|
|
|
|
|
Environment=NODE_ENV=production
|
2017-07-08 18:06:56 +02:00
|
|
|
WorkingDirectory=__FINALPATH__
|
2021-04-07 19:47:26 +02:00
|
|
|
PIDFile=__FINALPATH__/pidfile
|
2021-03-25 22:38:06 +01:00
|
|
|
Environment="__YNH_NODE_LOAD_PATH__"
|
2021-04-07 19:47:26 +02:00
|
|
|
ExecStart=__FINALPATH__/loader.js
|
2017-04-20 00:12:05 +02:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|