From 4e5445281a8343c53e1af833513f58575fc5ef15 Mon Sep 17 00:00:00 2001 From: lissav Date: Sat, 9 Apr 2011 11:24:06 +0000 Subject: [PATCH] remove putting db2 in /etc/init.d git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/db2sqlsetup | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/xCAT-client/bin/db2sqlsetup b/xCAT-client/bin/db2sqlsetup index 8338dcc56..90f6a82c0 100755 --- a/xCAT-client/bin/db2sqlsetup +++ b/xCAT-client/bin/db2sqlsetup @@ -1274,32 +1274,7 @@ sub db2reboot xCAT::MsgUtils->message("W", " $cmd failed."); } - # if on Linux redhat6 , we need to setup /etc/init.d - # this is a workaround until DB2 no longer uses /etc/inittab on Linux - if ($::osname eq 'Linux') { - # check to see DB2 has not already implemented a script in /etc/inittab - $cmd = " fgrep db2fmcd /etc/init.d/*"; - xCAT::Utils->runcmd($cmd, -1); - if ($::RUNCMD_RC == 0) { - my $message = "DB2 /etc/init.d reboot file already setup"; - xCAT::MsgUtils->message("I", "$message"); - } else { - $cmd = "cp /opt/xcat/share/xcat/tools/db2xcat /etc/init.d/db2xcat"; - xCAT::Utils->runcmd($cmd, 0); - if ($::RUNCMD_RC != 0) - { - xCAT::MsgUtils->message("E", " $cmd failed. DB2 will not automatically restart on reboot."); - } else { # added the script to start db2fmcd - $cmd = "chkconfig --add db2xcat"; - xCAT::Utils->runcmd($cmd, 0); - if ($::RUNCMD_RC != 0) - { - xCAT::MsgUtils->message("E", " $cmd failed. DB2 will not automatically restart on reboot."); - - } - } - } # add setup required for DB2 reboot $cmd = " fgrep \"kernel.shmmax = 268435456\" /etc/sysctl.conf"; xCAT::Utils->runcmd($cmd, -1); # entry not there @@ -1317,8 +1292,8 @@ sub db2reboot xCAT::MsgUtils->message("I", " $cmd failed. DB2 will not automatically restart on reboot."); } } + } - } # end Linux }