
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 34s
10 lines
256 B
Bash
Executable File
10 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
# Watchdog script to restart Chromium if it crashes
|
|
|
|
while true; do
|
|
if ! pgrep chromium > /dev/null; then
|
|
echo "$(date): Chromium not running, restarting..."
|
|
DISPLAY=:0 /home/${KIOSK_USER}/kiosk.sh &
|
|
fi
|
|
sleep 30
|
|
done |