summaryrefslogtreecommitdiff
path: root/systemd/sia-server.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/sia-server.service')
-rw-r--r--systemd/sia-server.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/sia-server.service b/systemd/sia-server.service
new file mode 100644
index 0000000..3738d9a
--- /dev/null
+++ b/systemd/sia-server.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Sia IoT server
+After=network.target mosquitto.service
+Wants=network.target mosquitto.service
+
+[Service]
+User=sia-server
+Group=sia-server
+ExecStart=/usr/bin/sia-server -config /etc/sia-server/config.json
+
+[Install]
+WantedBy=multi-user.target