From 55bdad70543e0609b77962a6b5643370b05b5d01 Mon Sep 17 00:00:00 2001 From: Daniel Madej Date: Tue, 17 Mar 2020 11:55:51 +0100 Subject: [PATCH] Return exit codes from casctl stop Signed-off-by: Daniel Madej --- utils/casctl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/casctl b/utils/casctl index 7930ba4..0ab45d9 100755 --- a/utils/casctl +++ b/utils/casctl @@ -5,8 +5,9 @@ # import argparse -import sys import re +import sys + import opencas if sys.version_info < (3, 5): @@ -131,6 +132,9 @@ def stop(flush): opencas.stop(flush) except Exception as e: eprint(e) + exit(1) + + exit(0) # Command line arguments parsing