diff options
-rw-r--r-- | systemd/webiot.service | 13 | ||||
-rw-r--r-- | systemd/webiot.sysusers | 1 |
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 |