* Mix of fixes to the heathcheck.sh from #2610 and start.sh from #2673.
* Made few more modifications to healthcheck.sh and start.sh. This change appears to be working.
Let's monitor this.
---------
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>
* by checking for existence of default 127 address,healthcheck will never effectively run, as the non-default eth0 ip will never be matched
* the comparison was not trimming off the port, thus healthcheck was always going to fail or denote a change when there may have been none
* simplified the comparison (thanks @edgd1er )
* DEBUG: print all lines before execution
if var DEBUG is set to anything other than false, each bash script will be run with a set -x. This would ease debugging
* DEBUG: centralize commands in utils.sh
* Add dns resolution test to healthcheck script
* Add dns resolution test to start script
Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com>