summaryrefslogtreecommitdiff
path: root/webiot/webiot.service
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-08-18 20:18:56 +0200
committerxengineering <me@xengineering.eu>2024-08-18 20:18:56 +0200
commit15ed599559b43ecd9942f3f4b97c072d5c97a025 (patch)
tree8ce7c20f8b06a324446fa663616def164f037306 /webiot/webiot.service
parent853781a2a621181e3ebf370af3422b0a010c740a (diff)
downloadpkgbuilds-15ed599559b43ecd9942f3f4b97c072d5c97a025.tar
pkgbuilds-15ed599559b43ecd9942f3f4b97c072d5c97a025.tar.zst
pkgbuilds-15ed599559b43ecd9942f3f4b97c072d5c97a025.zip
webiot: Add systemd unit and system user
Diffstat (limited to 'webiot/webiot.service')
-rw-r--r--webiot/webiot.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/webiot/webiot.service b/webiot/webiot.service
new file mode 100644
index 0000000..f331d60
--- /dev/null
+++ b/webiot/webiot.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=IoT server with web interface
+After=network.target
+
+[Service]
+User=webiot
+Group=webiot
+ExecStart=/usr/bin/webiot -c /etc/webiot/config.json
+
+[Install]
+WantedBy=multi-user.target