Add a systemd unit to start the kiosk
This commit is contained in:
parent
7b1ecb13fd
commit
00110e8607
1 changed files with 17 additions and 0 deletions
17
files/hobbes/grafana-kiosk.service
Normal file
17
files/hobbes/grafana-kiosk.service
Normal file
|
@ -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
|
Loading…
Reference in a new issue