add: script to restart run.py and pigpiod, example rc.local
This commit is contained in:
10
restart.sh
Executable file
10
restart.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user