--- recepies/lxc/lxc-watchdog.sh 2010/09/07 16:02:12 227 +++ recepies/lxc/lxc-watchdog.sh 2010/09/11 11:51:37 228 @@ -46,6 +46,7 @@ boot="-" hostname=`cat $(lxc_rootfs $name)/etc/hostname` ip=`grep address $(lxc_rootfs $name)/etc/network/interfaces | sed 's/.*address //'` + test -z "$ip" && ip=`grep lxc.network.ipv4 /var/lib/lxc/narada/config | cut -d= -f2` test -s /var/lib/lxc/$name/on_boot && boot="boot" echo "$name $status $boot $(lxc_rootfs $name) $ip $hostname" done ) | column -t