From 87fc929900169f2ec61217456cd60a1fd52ae8e2 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 7 Jul 2014 10:29:32 -0400 Subject: [PATCH] defect 4182 --- perl-xCAT/xCAT/Utils.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 52186cf4c..56e495327 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -1848,8 +1848,7 @@ sub get_image_name #------------------------------------------------------------------------------- =head3 StartService - Supports AIX and Linux as long as the service is registered with - lssrc or startsrc. + Supports AIX only, for Linux use startservice Used by the service node plugin (AAsn.pm) to start requested services. Checks to see if the input service is already started. If it is started it stops and starts the service. Otherwise @@ -3679,7 +3678,9 @@ sub startservice{ return -1; } - xCAT::Utils->runcmd($cmd, -1); + #xCAT::Utils->runcmd($cmd, -1); # do not use runcmd (backtics), must use system to not fork + system($cmd); + $::RUNCMD_RC=$?; return $::RUNCMD_RC; } @@ -3739,7 +3740,9 @@ sub stopservice{ return -1; } - xCAT::Utils->runcmd($cmd, -1); + #xCAT::Utils->runcmd($cmd, -1); # do not use runcmd (backtics), must use system to not fork + system($cmd); + $::RUNCMD_RC=$?; return $::RUNCMD_RC; }