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
1 changed files with 4 additions and 2 deletions
|
@ -20,18 +20,20 @@ fi
|
||||||
sudo -u automation /home/automation/chch-power/run.sh
|
sudo -u automation /home/automation/chch-power/run.sh
|
||||||
|
|
||||||
{
|
{
|
||||||
|
sleep 60
|
||||||
while /bin/true;
|
while /bin/true;
|
||||||
do
|
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
|
sleep 10
|
||||||
done
|
done
|
||||||
} &
|
} &
|
||||||
disown $!
|
disown $!
|
||||||
|
|
||||||
{
|
{
|
||||||
|
sleep 60
|
||||||
while /bin/true;
|
while /bin/true;
|
||||||
do
|
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
|
sleep 10
|
||||||
done
|
done
|
||||||
} &
|
} &
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue