BUG:2743588. start openibd service after install the packages so that node don't need to restart the system

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2009-04-09 10:57:30 +00:00
parent 36642ca0fe
commit 79fb92a58d
2 changed files with 9 additions and 0 deletions

View File

@ -58,6 +58,7 @@ foreach my $num ( @nums ) {
}
my $openibd_cmd = "/sbin/chkconfig --level 2345 openibd on";
runcmd($openibd_cmd);
# Write the info to the ifcfg file
my $dir;
if ( $OS_name eq 'suse')
@ -77,6 +78,10 @@ foreach my $num ( @nums ) {
print FILE "ONBOOT=yes\n" if ( $OS_name eq 'redhat');
print FILE "STARTMODE=auto\n" if ( $OS_name eq 'suse');
close FILE;
my $openibd_start_cmd = "/sbin/service openibd start";
runcmd($openibd_start_cmd);
runcmd("ifup $nic");
system("logger -t xcat 'configiba: successfully configured $nic.'");
} elsif ( $PLTFRM eq "AIX" ) {

View File

@ -77,6 +77,10 @@ foreach my $num ( @nums ) {
print FILE "ONBOOT=yes\n" if ( $OS_name eq 'redhat');
print FILE "STARTMODE=auto\n" if ( $OS_name eq 'suse');
close FILE;
my $openibd_start_cmd = "/sbin/service openibd start";
runcmd($openibd_start_cmd);
runcmd("ifup $nic");
system("logger -t xcat 'configiba: successfully configured $nic.'");
} elsif ( $PLTFRM eq "AIX" ) {