From 3183942a9d78cc265443a01bc7abdfb1df785c87 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 13 Oct 2012 11:47:32 +0200 Subject: [PATCH] vm/network: do not fail service on failed xenstore-read --- network/qubes_netwatcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/qubes_netwatcher b/network/qubes_netwatcher index 2512f737..63a2dae5 100755 --- a/network/qubes_netwatcher +++ b/network/qubes_netwatcher @@ -11,7 +11,7 @@ echo $$ >$PIDFILE trap 'exit 0' SIGTERM while true; do - NET_DOMID=$(/usr/bin/xenstore-read qubes_netvm_domid) + NET_DOMID=$(/usr/bin/xenstore-read qubes_netvm_domid || :) if [[ -n "$NET_DOMID" ]] && [[ $NET_DOMID -gt 0 ]]; then UNTRUSTED_NETCFG=$(/usr/bin/xenstore-read /local/domain/$NET_DOMID/qubes_netvm_external_ip || :) # UNTRUSTED_NETCFG is not parsed in any way