CLOUDSTACK-7376 passwd_server attempts to start but terminates with the exit code 137

Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
This commit is contained in:
Bharat Kumar 2014-08-20 19:33:15 +05:30 committed by Sheng Yang
parent 190bd38026
commit 29911dd2e1

View File

@ -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 &