From 3e3be8425bf79869f6695569013f4dd78b911bd5 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 11 Jun 2014 01:38:16 -0700 Subject: [PATCH] replace sysvinit with newly added subroutines in xCAT::Utils --- xCAT-server/sbin/xcatconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 096e70cee..34d55d1f4 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -418,12 +418,14 @@ if ($::INITIALINSTALL || $::FORCE || $::UPDATEINSTALL || $::genCredentials) if ($::osname eq 'AIX') { $xcmd = "$::XCATROOT/sbin/restartxcatd"; + system($xcmd); } else { - $xcmd = "/etc/init.d/xcatd restart"; + #$xcmd = "/etc/init.d/xcatd restart"; + xCAT::Utils->restartservice("xcatd"); } - system($xcmd); + } # more config needed after xcatd start