projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a2be6f
)
fix ip address display
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 11 Sep 2010 12:19:12 +0000
(12:19 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 11 Sep 2010 12:19:12 +0000
(12:19 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@229
191e9f34
-6774-4a6d-acfc-
7664dacd4a2a
recepies/lxc/lxc-watchdog.sh
patch
|
blob
|
history
diff --git
a/recepies/lxc/lxc-watchdog.sh
b/recepies/lxc/lxc-watchdog.sh
index
90c162f
..
fb0aa44
100755
(executable)
--- a/
recepies/lxc/lxc-watchdog.sh
+++ b/
recepies/lxc/lxc-watchdog.sh
@@
-46,7
+46,7
@@
lxc_status() {
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 -z "$ip" && ip=`grep lxc.network.ipv4 /var/lib/lxc/
$name
/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