Fail the setup if we can't connect to VPP; exit the daemon with non-zero value to force restart by systemd

This commit is contained in:
Pim van Pelt
2022-03-14 23:14:59 +00:00
parent 86512dd66b
commit 968c0abe2f
2 changed files with 5 additions and 1 deletions

View File

@ -238,5 +238,7 @@ def main():
except KeyboardInterrupt:
a.stop()
sys.exit(-1)
if __name__ == "__main__":
main()