mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
Update nodebb.service
This commit is contained in:
parent
c8f747cbeb
commit
78ed4c9c74
1 changed files with 8 additions and 11 deletions
|
@ -1,19 +1,16 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=NodeBB forum for Node.js.
|
Description=NodeBB forum for Node.js.
|
||||||
Documentation=https://docs.nodebb.org
|
After=network.target
|
||||||
After=system.slice multi-user.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=__APP__
|
||||||
|
Group=__APP__
|
||||||
StandardOutput=syslog
|
WorkingDirectory=__FINALPATH__
|
||||||
StandardError=syslog
|
ExecStartPre=__NODEJS__
|
||||||
SyslogIdentifier=nodebb
|
Environment="PATH=__ENV_PATH__"
|
||||||
|
ExecStart=__NODE__ loader.js --no-daemon --no-silent
|
||||||
Environment=NODE_ENV=production
|
|
||||||
WorkingDirectory=/var/www/nodebb
|
|
||||||
ExecStart=/var/www/nodebb/nodebb --no-silent --no-daemon
|
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Add table
Reference in a new issue