diff --git a/dbcon/mysql/install_calpont_mysql.sh b/dbcon/mysql/install_calpont_mysql.sh index 1080e69bc..e81394cab 100755 --- a/dbcon/mysql/install_calpont_mysql.sh +++ b/dbcon/mysql/install_calpont_mysql.sh @@ -26,7 +26,7 @@ done df=$installdir/mysql/my.cnf -$installdir/mysql/bin/mysql --defaults-extra-file=$df --force --user=root mysql 2> ${tmpdir}mysql_install.log < ${tmpdir}/mysql_install.log < /dev/null 2>&1 & + exec $InstallDir/bin/run.sh -l ${tmpDir} $InstallDir/bin/ProcMon > /dev/null 2>&1 & return $RETVAL } diff --git a/oam/install_scripts/run.sh b/oam/install_scripts/run.sh index accdd3be2..9cc72ba4b 100755 --- a/oam/install_scripts/run.sh +++ b/oam/install_scripts/run.sh @@ -3,13 +3,14 @@ # $Id$ # -usage="usage: run.sh [-vh] [-s sleep] [-t tries] executable" +usage="usage: run.sh [-vh] [-s sleep] [-t tries] [-l logDir] executable" vflg=0 sopt="5" topt="0" +lopt="/tmp/columnstore_tmp_files" -while getopts "vs:t:h" flag; do +while getopts "vs:t:h:l" flag; do case $flag in v) vflg=1 ;; @@ -17,6 +18,8 @@ while getopts "vs:t:h" flag; do ;; t) topt=$OPTARG ;; + t) lopt=$OPTARG + ;; h) echo $usage exit 0 ;; @@ -45,12 +48,9 @@ if [ $vflg -gt 0 ]; then echo "starting $exename $args with sleep=$sopt and tries=$topt" fi -#get temp directory -tmpDir=`$installdir/bin/getConfig SystemConfig SystemTempFileDir` - while [ $keep_going -ne 0 ]; do $exename $args - if [ -e ${tmpDir}/StopColumnstore ]; then + if [ -e ${lopt}/StopColumnstore ]; then exit 0 fi if [ $topt -gt 0 -a $retries -ge $topt ]; then diff --git a/procmon/processmonitor.cpp b/procmon/processmonitor.cpp index a59d785ed..a1f6db8a8 100644 --- a/procmon/processmonitor.cpp +++ b/procmon/processmonitor.cpp @@ -2670,16 +2670,16 @@ pid_t ProcessMonitor::startProcess(string processModuleType, string processName, if ( LogFile == "off" ) { - string cmd = "mv " + outFileName + " " + saveoutFileName; + string cmd = "mv " + outFileName + " " + saveoutFileName + " > /dev/null"; system(cmd.c_str()); - cmd = "mv " + errFileName + " " + saveerrFileName; + cmd = "mv " + errFileName + " " + saveerrFileName + " > /dev/null"; system(cmd.c_str()); } else { - string cmd = "mv " + outFileName + " " + saveoutFileName; + string cmd = "mv " + outFileName + " " + saveoutFileName + " > /dev/null"; system(cmd.c_str()); - cmd = "mv " + errFileName + " " + saveerrFileName; + cmd = "mv " + errFileName + " " + saveerrFileName + " > /dev/null"; system(cmd.c_str()); }