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:
teastep 2006-12-10 20:34:54 +00:00
parent d94fdb92c6
commit adcc9202d0

View File

@ -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
} }