etc/systemd/system/chromium-monitor.service hinzugefügt
This commit is contained in:
1 parent
f4f791c42d
commit
712f28b3a9
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=A Service to monitor the Kiosk's current site
|
||||
After=network.target getty@tty1.service
|
||||
|
||||
[Service]
|
||||
# Wait until Chromium is running
|
||||
ExecStartPre=-/bin/bash -c 'while ! pgrep -f chromium-browser > /dev/null; do sleep 5; done'
|
||||
ExecStartPre=-/usr/bin/sleep 20
|
||||
Type=simple
|
||||
User=loginuser
|
||||
ExecStart=/usr/bin/chromium-monitor
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user