Gitweb: http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=... Commit: b9d2735366887418c7dbb55f534586224fbf0755 Parent: be58aeb2b0626dec8c11c81cff8723d474b9cc67 Author: Fabio M. Di Nitto fdinitto@redhat.com AuthorDate: Thu Oct 22 07:26:25 2009 +0200 Committer: Fabio M. Di Nitto fdinitto@redhat.com CommitterDate: Thu Oct 22 07:29:37 2009 +0200
oracledb ras: stop using obsoleted initlog
replace with logger.
Thanks to Bill Nottingham for the patch.
Fixes rhbz#530197
Signed-off-by: Fabio M. Di Nitto fdinitto@redhat.com --- rgmanager/src/resources/oracledb.sh.in | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/rgmanager/src/resources/oracledb.sh.in b/rgmanager/src/resources/oracledb.sh.in index 809605e..5ba3370 100644 --- a/rgmanager/src/resources/oracledb.sh.in +++ b/rgmanager/src/resources/oracledb.sh.in @@ -278,7 +278,7 @@ start_db() rm -f $tmpfile
# Dump logfile to /var/log/messages - initlog -q -c "cat $logfile" + logger -f $logfile
if [ $rv -ne 0 ]; then echo "ORACLE_HOME Incorrectly set?" @@ -326,7 +326,7 @@ stop_db() rm -f $tmpfile
# Dump logfile to /var/log/messages - initlog -q -c "cat $logfile" + logger -f $logfile
if [ $rv -ne 0 ]; then echo "ORACLE_HOME Incorrectly set?" @@ -362,12 +362,12 @@ force_cleanup() # Patch from Shane Bradley to fix 471266 pids=`ps ax | grep $ORACLE_HOME | grep "ora_.*_${ORACLE_SID}" | grep -v grep | awk '{print $1}'`
- initlog -n $SCRIPT -s "<err> Not all Oracle processes exited cleanly, killing" + logger -t $SCRIPT "<err> Not all Oracle processes exited cleanly, killing" for pid in $pids; do kill -9 $pid if [ $? -eq 0 ]; then - initlog -n $SCRIPT -s "Killed $pid" + logger -t $SCRIPT "Killed $pid" fi done
@@ -428,7 +428,7 @@ get_db_status() for (( i=$RESTART_RETRIES ; i; i-- )) ; do # this db process is down - stop and # (re)start all ora_XXXX_$ORACLE_SID processes - initlog -q -n $SCRIPT -s "Restarting Oracle Database..." + logger -t $SCRIPT "Restarting Oracle Database..." stop_db if [ $? != 0 ] ; then # stop failed - return 1
cluster-commits@lists.stg.fedorahosted.org