From c6c0eac5bf9572a64aa64938794acc9ab0a0e8bb Mon Sep 17 00:00:00 2001 From: berhsi Date: Mon, 29 Jul 2019 18:33:19 +0200 Subject: [PATCH] add unit for systemd: statusd.service --- statusd.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 statusd.service diff --git a/statusd.service b/statusd.service new file mode 100644 index 0000000..7c0578a --- /dev/null +++ b/statusd.service @@ -0,0 +1,14 @@ +[Unit] +Description=Deamon for setting status API +After=systemd-network.service network.target + +[Service] +Type=simple +WorkingDirectory=/opt/doorstatus/ +ExecStart=/opt/doorstatus/statusd.py +SyslogIdentifier=statusd +User=status +Group=status + +[Install] +WantedBy=multi-user.target