changed to recommended monitoring method and added startup delay
(delay needed for unknown reasons, doesn't work otherwise)
This commit is contained in:
parent
a5faeec127
commit
c92059d120
|
@ -20,18 +20,20 @@ fi
|
|||
sudo -u automation /home/automation/chch-power/run.sh
|
||||
|
||||
{
|
||||
sleep 60
|
||||
while /bin/true;
|
||||
do
|
||||
AUTOSSH_FIRST_POLL=30 AUTOSSH_POLL=15 /usr/bin/autossh -N -M 20023 -4 -R '127.0.0.1:2322:127.0.0.1:22' automation@vbox.chch.it
|
||||
/usr/bin/autossh -N -M 0 -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -4 -R '127.0.0.1:2322:127.0.0.1:22' automation@vbox.chch.it
|
||||
sleep 10
|
||||
done
|
||||
} &
|
||||
disown $!
|
||||
|
||||
{
|
||||
sleep 60
|
||||
while /bin/true;
|
||||
do
|
||||
AUTOSSH_FIRST_POLL=30 AUTOSSH_POLL=15 /usr/bin/autossh -N -M 20025 -4 -R '127.0.0.1:2322:127.0.0.1:22' cloudbot@vcup.chch.it
|
||||
/usr/bin/autossh -N -M 0 -o "ServerAliveInterval 5" -o "ServerAliveCountMax 3" -4 -R '127.0.0.1:2322:127.0.0.1:22' cloudbot@vcup.chch.it
|
||||
sleep 10
|
||||
done
|
||||
} &
|
||||
|
|
Loading…
Reference in New Issue