mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
Create nodebb.service
This commit is contained in:
parent
6b63800737
commit
565bdb90d9
1 changed files with 20 additions and 0 deletions
20
conf/nodebb.service
Normal file
20
conf/nodebb.service
Normal file
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=NodeBB forum for Node.js.
|
||||
Documentation=http://nodebb.readthedocs.io/en/latest/
|
||||
After=system.slice multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nodebb
|
||||
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=nodebb
|
||||
|
||||
Environment=NODE_ENV=production
|
||||
WorkingDirectory=__PATH__
|
||||
ExecStart=/usr/bin/node loader.js --no-daemon --no-silent
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue