diff --git a/config.json.example b/config.json.example index b5f2e90..570e320 100644 --- a/config.json.example +++ b/config.json.example @@ -1,5 +1,5 @@ { - "host": "nice.wafe.eu", + "host": "rusty.wafe.eu", "user": "tunnel", "mapping": [ { diff --git a/lib/safe-harbor.py b/lib/safe-harbor.py index 83f3f69..8ad2a01 100755 --- a/lib/safe-harbor.py +++ b/lib/safe-harbor.py @@ -19,13 +19,14 @@ if __name__ == "__main__": for path in sys.argv[1:]: try: cfg = load_cfg(path) + print("> using %s" %(path)) break except Exception as e: print("! cfg file %s failed to load (%s)" %(path, e)) if not cfg: - print("!!! unable to load any configuration") + print("! unable to load any configuration") sys.exit(1) command = ["/usr/bin/ssh", "-o", "ServerAliveInterval 45", "-o", "ServerAliveCountMax 2", "-o", "ExitOnForwardFailure yes", "-N"] @@ -36,5 +37,4 @@ if __name__ == "__main__": command.append("%s@%s" %(cfg["user"], cfg["host"])) - # replace this process, systemd will restart us if needed subprocess.run(command)