summaryrefslogtreecommitdiff
path: root/node-server.service
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2021-07-12 16:00:04 -0600
committerAlexis Hovorka <[email protected]>2021-07-12 16:00:04 -0600
commit6205eb63c0047629f9f146c56fc8760c9bc2e65b (patch)
treeea31d7af45482a8228911b49edcb95fc91ae34c1 /node-server.service
Initial commit
Diffstat (limited to 'node-server.service')
-rw-r--r--node-server.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/node-server.service b/node-server.service
new file mode 100644
index 0000000..42c1e8f
--- /dev/null
+++ b/node-server.service
@@ -0,0 +1,13 @@
+[Service]
+ExecStart=/usr/bin/node /srv/http/appname/app.js
+Restart=always
+WorkingDirectory=/srv/http/appname
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=appname
+User=alexis
+Group=users
+Environment=PORT=8080
+
+[Install]
+WantedBy=multi-user.target