2017-04-20 00:12:05 +02:00
|
|
|
[Unit]
|
2021-03-25 17:00:29 +01:00
|
|
|
Description=NodeBB
|
|
|
|
Documentation=https://docs.nodebb.org
|
2021-07-02 08:11:53 +02:00
|
|
|
After=system.slice multi-user.target
|
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-05-30 09:34:35 +02:00
|
|
|
Group=__APP__
|
2021-08-31 17:05:07 +02:00
|
|
|
|
2021-04-07 19:47:26 +02:00
|
|
|
Environment=NODE_ENV=production
|
2021-08-31 17:05:07 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2021-09-01 15:41:13 +02:00
|
|
|
#PIDFile=__FINALPATH__/pidfile
|
2021-09-02 10:09:41 +02:00
|
|
|
Environment="__NODE_ENV_PATH__"
|
|
|
|
ExecStart=__FINALPATH__/nodebb start
|
2021-08-31 23:19:28 +02:00
|
|
|
#loader.js
|
2017-04-20 00:12:05 +02:00
|
|
|
Restart=always
|
2021-08-31 17:05:07 +02:00
|
|
|
|
2021-05-30 09:34:35 +02:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2021-07-01 23:31:36 +02:00
|
|
|
SyslogIdentifier=__APP__
|
2017-04-20 00:12:05 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|