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; }