summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-05-15 15:46:37 +0200
committerxengineering <me@xengineering.eu>2022-05-15 15:46:37 +0200
commit01224764112e3586544fb6868e0ba14b03a328c7 (patch)
treef0379954374294e5b1ff5847a7d76ff1547431e4
parentb0f70f5498ae967bcf18b968b995398d1b03b04f (diff)
downloadwebiot-01224764112e3586544fb6868e0ba14b03a328c7.tar
webiot-01224764112e3586544fb6868e0ba14b03a328c7.tar.zst
webiot-01224764112e3586544fb6868e0ba14b03a328c7.zip
Add systemd files
-rw-r--r--systemd/webiot.service13
-rw-r--r--systemd/webiot.sysusers1
2 files changed, 14 insertions, 0 deletions
diff --git a/systemd/webiot.service b/systemd/webiot.service
new file mode 100644
index 0000000..68f2186
--- /dev/null
+++ b/systemd/webiot.service
@@ -0,0 +1,13 @@
+
+[Unit]
+Description=An IoT webserver
+After=network.target
+
+[Service]
+User=webiot
+Group=webiot
+ExecStart=/usr/bin/webiot
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/systemd/webiot.sysusers b/systemd/webiot.sysusers
new file mode 100644
index 0000000..4948bb1
--- /dev/null
+++ b/systemd/webiot.sysusers
@@ -0,0 +1 @@
+u webiot - "webiot daemon user" - /bin/bash