This commit is contained in:
Gordon Grant-Stuart 2023-07-11 15:30:24 +01:00
parent 0ff7a57d40
commit 75fa4ee808

View File

@ -136,7 +136,9 @@ case "$1" in
genconfig
echo $$ > "$BASEDIR/var/tunnelkeeper.pid"
# cat "$BASEDIR/etc/tunnelkeeper.conf" | awk '/^Host / {print $2}' | xargs -I% -P0 $0 FORKSTART % '#tunnelkeeper' &
cat "$BASEDIR/etc/tunnelkeeper.conf" | awk '/^Host / {print $2}' | while read host; do forkstart $host & ; done
cat "$BASEDIR/etc/tunnelkeeper.conf" | awk '/^Host / {print $2}' | while read host
do forkstart $host &
done
;;
stop )
rm -f "$BASEDIR/var/tunnelkeeper.pid"