From 01224764112e3586544fb6868e0ba14b03a328c7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 15 May 2022 15:46:37 +0200 Subject: Add systemd files --- systemd/webiot.service | 13 +++++++++++++ systemd/webiot.sysusers | 1 + 2 files changed, 14 insertions(+) create mode 100644 systemd/webiot.service create mode 100644 systemd/webiot.sysusers 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 -- cgit v1.2.3-70-g09d2