Set exit code to 6 when startup is disabled

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-05-07 14:12:41 -07:00
parent 548c0558c1
commit 4b27c72c79
2 changed files with 4 additions and 4 deletions

View File

@ -1683,7 +1683,7 @@ restore_command() {
if [ -z "$STARTUP_ENABLED" ]; then if [ -z "$STARTUP_ENABLED" ]; then
error_message "ERROR: Startup is disabled" error_message "ERROR: Startup is disabled"
exit 2 exit 6
fi fi
g_restorepath=${VARDIR}/$RESTOREFILE g_restorepath=${VARDIR}/$RESTOREFILE
@ -3680,7 +3680,7 @@ start_command() {
else else
error_message "${VARDIR}/firewall is missing or is not executable" error_message "${VARDIR}/firewall is missing or is not executable"
logger -p kern.err "ERROR:$g_product start failed" logger -p kern.err "ERROR:$g_product start failed"
rc=2 rc=6
fi fi
[ -n "$g_nolock" ] || mutex_off [ -n "$g_nolock" ] || mutex_off
@ -3813,7 +3813,7 @@ restart_command() {
else else
error_message "${VARDIR}/firewall is missing or is not executable" error_message "${VARDIR}/firewall is missing or is not executable"
logger -p kern.err "ERROR:$g_product restart failed" logger -p kern.err "ERROR:$g_product restart failed"
rc=2 rc=6
fi fi
[ -n "$g_nolock" ] || mutex_off [ -n "$g_nolock" ] || mutex_off

View File

@ -169,7 +169,7 @@ get_config() {
*) *)
if [ -n "$STARTUP_ENABLED" ]; then if [ -n "$STARTUP_ENABLED" ]; then
fatal_error "Invalid Value for STARTUP_ENABLED: $STARTUP_ENABLED" fatal_error "Invalid Value for STARTUP_ENABLED: $STARTUP_ENABLED"
exit 2 exit 6
fi fi
;; ;;
esac esac