summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorwxcafé <wxcafe@users.noreply.github.com>2020-01-03 15:38:03 -0500
committerGitHub <noreply@github.com>2020-01-03 15:38:03 -0500
commit38b0e2b5c36fc571f43011ab8e49c499cfa149a5 (patch)
treea17d94219ded17dfbc6390784fe56760e94bf04b /config
parentdf8d3cd01f8c36ce6721e809e448f727cbf4a857 (diff)
Adds a systemd service file
Diffstat (limited to 'config')
-rw-r--r--config/gathio.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/gathio.service b/config/gathio.service
new file mode 100644
index 0000000..447d44f
--- /dev/null
+++ b/config/gathio.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=GathIO
+After=network.target
+
+[Service]
+Type=simple
+User=gathio
+WorkingDirectory=/srv/gathio
+ExecStart=/usr/bin/npm start
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target