From 00110e860793096f5699a466a689af9cf8c43d83 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Thu, 4 Jan 2024 22:15:28 +0100 Subject: [PATCH] Add a systemd unit to start the kiosk --- files/hobbes/grafana-kiosk.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 files/hobbes/grafana-kiosk.service diff --git a/files/hobbes/grafana-kiosk.service b/files/hobbes/grafana-kiosk.service new file mode 100644 index 0000000..09a32ce --- /dev/null +++ b/files/hobbes/grafana-kiosk.service @@ -0,0 +1,17 @@ +[Unit] +Description=Grafana Kiosk +After=network.target +Wants=network.target + +[Service] +User=root + +ExecStart=/usr/local/bin/kiosk.sh + +Restart=always + +PIDFile=/run/kiosk.pid +ExecStop=/bin/kill -s SIGTERM $MAINPID + +[Install] +WantedBy=multi-user.target