summarylogtreecommitdiffstats
path: root/webthings-gateway.service
diff options
context:
space:
mode:
authorMichael Stegeman2019-11-27 11:52:47 -0900
committerMichael Stegeman2019-11-28 21:50:03 -0900
commit7846927687beb9787b6c18381c4d14631b0815ee (patch)
tree5424ad0d951d8a2b31362ddc8926cced40d1a387 /webthings-gateway.service
downloadaur-7846927687beb9787b6c18381c4d14631b0815ee.tar.gz
Initial commit.
Diffstat (limited to 'webthings-gateway.service')
-rw-r--r--webthings-gateway.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/webthings-gateway.service b/webthings-gateway.service
new file mode 100644
index 000000000000..6a3d48a4bf7e
--- /dev/null
+++ b/webthings-gateway.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Mozilla WebThings Gateway
+After=network.target
+
+[Service]
+Type=simple
+StandardOutput=journal
+StandardError=journal
+WorkingDirectory=/opt/webthings-gateway
+ExecStart=/usr/bin/webthings-gateway
+Restart=always
+RestartSec=10s
+
+[Install]
+WantedBy=multi-user.target