mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-28 16:39:29 +01:00
Log the text from startup errors.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a534bca914
commit
499b0cddaa
@ -656,7 +656,7 @@ fatal_error()
|
|||||||
{
|
{
|
||||||
echo " ERROR: $@" >&2
|
echo " ERROR: $@" >&2
|
||||||
|
|
||||||
if [ $LOG_VERBOSITY -gt 1 ]; then
|
if [ $LOG_VERBOSITY -ge 0 ]; then
|
||||||
timestamp="$(date +'%_b %d %T') "
|
timestamp="$(date +'%_b %d %T') "
|
||||||
echo "${timestamp} ERROR: $@" >> $STARTUP_LOG
|
echo "${timestamp} ERROR: $@" >> $STARTUP_LOG
|
||||||
fi
|
fi
|
||||||
@ -672,6 +672,12 @@ fatal_error()
|
|||||||
startup_error() # $* = Error Message
|
startup_error() # $* = Error Message
|
||||||
{
|
{
|
||||||
echo " ERROR: $@: Firewall state not changed" >&2
|
echo " ERROR: $@: Firewall state not changed" >&2
|
||||||
|
|
||||||
|
if [ $LOG_VERBOSITY -ge 0 ]; then
|
||||||
|
timestamp="$(date +'%_b %d %T') "
|
||||||
|
echo "${timestamp} ERROR: $@" >> $STARTUP_LOG
|
||||||
|
fi
|
||||||
|
|
||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
start)
|
start)
|
||||||
logger -p kern.err "ERROR:$g_product start failed:Firewall state not changed"
|
logger -p kern.err "ERROR:$g_product start failed:Firewall state not changed"
|
||||||
|
@ -626,6 +626,12 @@ fatal_error()
|
|||||||
startup_error() # $* = Error Message
|
startup_error() # $* = Error Message
|
||||||
{
|
{
|
||||||
echo " ERROR: $@: Firewall state not changed" >&2
|
echo " ERROR: $@: Firewall state not changed" >&2
|
||||||
|
|
||||||
|
if [ $LOG_VERBOSITY -ge 0 ]; then
|
||||||
|
timestamp="$(date +'%_b %d %T') "
|
||||||
|
echo "${timestamp} ERROR: $@" >> $STARTUP_LOG
|
||||||
|
fi
|
||||||
|
|
||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
start)
|
start)
|
||||||
logger -p kern.err "ERROR:$g_product start failed:Firewall state not changed"
|
logger -p kern.err "ERROR:$g_product start failed:Firewall state not changed"
|
||||||
|
Loading…
Reference in New Issue
Block a user