Files
baroness/restart.sh
2017-03-30 16:49:18 +02:00

11 lines
236 B
Bash
Executable File

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