diff --git a/conf/nodebb.service b/conf/nodebb.service new file mode 100644 index 0000000..7fa4703 --- /dev/null +++ b/conf/nodebb.service @@ -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