diff --git a/bin/receiver.py b/bin/receiver.py index dac81f3b..82674495 100644 --- a/bin/receiver.py +++ b/bin/receiver.py @@ -66,7 +66,7 @@ def main(): cp.read(options.config) else: print("Config file not found at", options.config) - exit(1) + sys.exit(1) # Check for pidfile pidfile = cp.get('daemon', 'pidfile') diff --git a/bin/sender.py b/bin/sender.py index f6d08e98..42afef4d 100644 --- a/bin/sender.py +++ b/bin/sender.py @@ -57,7 +57,7 @@ def main(): cp.read(options.config) else: print("Config file not found at", options.config) - exit(1) + sys.exit(1) ssm.agents.logging_helper(cp)