From 641ee9513d1f0122be37375d0464581aa0f23193 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sat, 26 Oct 2024 01:04:25 +0200 Subject: [PATCH] Add pi-purple/autorun --- pi-purple/autorun | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pi-purple/autorun 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