mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-02 10:59:27 +01:00
Log start/restart/restore failures -- Take 2
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5091 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d94fdb92c6
commit
adcc9202d0
@ -4906,6 +4906,18 @@ fatal_error()
|
|||||||
startup_error() # \$* = Error Message
|
startup_error() # \$* = Error Message
|
||||||
{
|
{
|
||||||
echo " ERROR: \$@" >&2
|
echo " ERROR: \$@" >&2
|
||||||
|
case \$COMMAND in
|
||||||
|
start)
|
||||||
|
logger "Shorewall start failed"
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
logger "Shorewall restart failed"
|
||||||
|
;;
|
||||||
|
restore)
|
||||||
|
logger "Shorewall restore failed"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
kill \$\$
|
kill \$\$
|
||||||
exit 2
|
exit 2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user