proxyvm: directly display error msg beside of writing it to xenstore
This commit is contained in:
parent
65f9b1669e
commit
9cfa24c8b8
@ -19,6 +19,9 @@ while true; do
|
|||||||
IPTABLES_SAVE=$(/sbin/iptables-save | sed '/^\*filter/,/^COMMIT/d')
|
IPTABLES_SAVE=$(/sbin/iptables-save | sed '/^\*filter/,/^COMMIT/d')
|
||||||
OUT=`echo -e "$RULES\n$IPTABLES_SAVE" | /sbin/iptables-restore 2>&1 || :`
|
OUT=`echo -e "$RULES\n$IPTABLES_SAVE" | /sbin/iptables-restore 2>&1 || :`
|
||||||
/usr/bin/xenstore-write $XENSTORE_ERROR "$OUT"
|
/usr/bin/xenstore-write $XENSTORE_ERROR "$OUT"
|
||||||
|
if [ "$OUT" ]; then
|
||||||
|
DISPLAY=:0 /usr/bin/notify-send -t 3000 "Firewall loading error ($HOSTNAME)" "$OUT" || :
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z "$OUT" ]]; then
|
if [[ -z "$OUT" ]]; then
|
||||||
# If OK save it for later
|
# If OK save it for later
|
||||||
|
Loading…
Reference in New Issue
Block a user