From c92059d120576c4c0be212cb85f5f4726c8d3739 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Feb 2017 16:36:26 +0000 Subject: [PATCH] changed to recommended monitoring method and added startup delay (delay needed for unknown reasons, doesn't work otherwise) --- sysconfig/etc_rc.local | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sysconfig/etc_rc.local b/sysconfig/etc_rc.local index ff758f0..34241d3 100755 --- a/sysconfig/etc_rc.local +++ b/sysconfig/etc_rc.local @@ -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 } &