[openvas-scanner] fixed reporting of errors in systemctl

rebus rebus at fedoraproject.org
Tue Jan 24 03:22:29 UTC 2012


commit 1787dccc7ad364d301c9ce60958aae0f8780236d
Author: Michal Ambroz <rebus at seznam.cz>
Date:   Tue Jan 24 04:21:17 2012 +0100

    fixed reporting of errors in systemctl

 openvas-scanner.initd |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openvas-scanner.initd b/openvas-scanner.initd
index 20690d6..dcd86ab 100644
--- a/openvas-scanner.initd
+++ b/openvas-scanner.initd
@@ -49,13 +49,13 @@ start() {
 	grep -q ca_file $config >& /dev/null
 	if [ $? -ne 0 ]; then
 		logger --tag "$progname" "No certificate specified in configuration file. Did you run openvas-mkcert tool?"
-		exit 6
+		exit 2
 	fi
 
 	CACERT=`grep ca_file $config | cut -d= -f2`
 	if [ \! -z "$CACERT" -a \! -f "$CACERT" ]; then
 		logger --tag "$progname" "Certificate specified in the configuration file not found. Did you run openvas-mkcert tool?"
-		exit 6
+		exit 2
 	fi
 
 	echo "Starting $progname:"


More information about the scm-commits mailing list