Files
baroness/restart.sh

11 lines
221 B
Bash
Executable File

#!/bin/bash
while true; do
su - pi -c 'cd /home/pi/baroness && FRAMEBUFFER=/dev/fb1 startx ./run.py'
now=$(date)
echo "Current time : $now" >> restart.log
killall pigpiod
sleep 5
pigpiod
sleep 5
done