summarylogtreecommitdiffstats
path: root/nodebb.service
diff options
context:
space:
mode:
authorDuarte David2017-02-05 14:31:12 +0100
committerDuarte David2017-02-05 14:31:12 +0100
commitdbf1660453591ad8416c334c66508bec57f84891 (patch)
tree5668e9b97003acacf13f983539795f85da853771 /nodebb.service
downloadaur-nodebb.tar.gz
Add nodebb package
Diffstat (limited to 'nodebb.service')
-rw-r--r--nodebb.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/nodebb.service b/nodebb.service
new file mode 100644
index 000000000000..0dfaf0168a24
--- /dev/null
+++ b/nodebb.service
@@ -0,0 +1,21 @@
+[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=/opt/nodebb
+ExecStart=/usr/bin/node loader.js --no-daemon --no-silent
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+