From e2120ed8f06ecadb84d2e46114c9a0d0b485a770 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 18 Apr 2018 04:50:54 +0200 Subject: [PATCH] [mod] exit is from sys --- dynette.cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynette.cron.py b/dynette.cron.py index 6ede07e..21dda87 100755 --- a/dynette.cron.py +++ b/dynette.cron.py @@ -145,13 +145,13 @@ with psycopg2.connect(postgresql_dsn) as postgresql_connection: # Reload Bind if os.system('/usr/sbin/rndc reload') == 0: - exit(0) + sys.exit(0) else: os.system('cp '+ conf_file +' '+ conf_file +'.bad') os.system('cp '+ conf_file +'.back '+ conf_file) os.system('/usr/sbin/rndc reload') print("An error occured ! Please check daemon.log and your conf.bad") - exit(1) + sys.exit(1) # flush bind9 cache (mostly because we got a hmac-sha512 key migration if need_bind9_cache_flush: