summarylogtreecommitdiffstats
path: root/webthings-gateway.service
diff options
context:
space:
mode:
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