defect 4182

This commit is contained in:
lissav 2014-07-07 10:29:32 -04:00
parent 37ccddadf6
commit 87fc929900

View File

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