mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 14:20:40 +01:00
Set exit code to 6 when startup is disabled
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
548c0558c1
commit
4b27c72c79
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user