From 29911dd2e1b650ed5b065448138f36744f4f7bc4 Mon Sep 17 00:00:00 2001 From: Bharat Kumar Date: Wed, 20 Aug 2014 19:33:15 +0530 Subject: [PATCH] CLOUDSTACK-7376 passwd_server attempts to start but terminates with the exit code 137 Signed-off-by: Sheng Yang --- systemvm/patches/debian/config/opt/cloud/bin/passwd_server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/passwd_server b/systemvm/patches/debian/config/opt/cloud/bin/passwd_server index 0f4a7728874..295e720edd2 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/passwd_server +++ b/systemvm/patches/debian/config/opt/cloud/bin/passwd_server @@ -16,7 +16,10 @@ # specific language governing permissions and limitations # under the License. -ips=$(ip addr show dev eth0 | grep inet | grep eth0 | awk '{print $2}' ); echo $ips +#we have intentionally split the ip gathering command into two. +#This was done to avoid getting a SIGPIPE during certain load conditions. +ipInfo=$(ip addr show dev eth0 | grep inet | grep eth0 ) +ips=$(echo "$ipInfo" | awk '{print $2}' ); echo $ips for ip in $ips; do addr=$(echo $ip | awk -F'/' '{print $1}') /opt/cloud/bin/passwd_server_ip $addr >> /var/log/cloud.log 2>&1 &