Add pi-purple/autorun

This commit is contained in:
Daniella / Tove 2024-10-26 01:04:25 +02:00
parent 9f13fe242d
commit 641ee9513d

16
pi-purple/autorun Normal file
View file

@ -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