diff --git a/pi-purple/autorun b/pi-purple/autorun new file mode 100644 index 0000000..a4c4b51 --- /dev/null +++ b/pi-purple/autorun @@ -0,0 +1,16 @@ +#!/bin/bash + +# revpfw3 thread +( + while true; do revpfw3 client tudbut.de 222 localhost 22 _____ ; sleep 5 ; done & disown + while true; do revpfw3 client tudbut.de 200 localhost 8200 _____ ; sleep 5 ; done & disown + while true; do revpfw3 client tudbut.de 6167 localhost 6167 _____ ; sleep 5 ; done & disown + while true; do revpfw3 client tudbut.de 44404 localhost 4000 _____ ; sleep 5 ; done & disown +) > /var/log/autorun.revpfw3.log 2>&1 & disown + +sudo chmod a+rw /var/run/docker.sock +for dir in /home/git-run/*/ ; do + sudo -u git-run bash -c "cd $dir; while true ; do forgejo-runner daemon > log 2>&1 ; done" & disown +done + +while true; do sleep 60; done