cluster: STABLE3 - oracledb ras: stop using obsoleted initlog
Fabio M. Di Nitto
fabbione at fedoraproject.org
Thu Oct 22 05:27:41 UTC 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=18100b8bcc49b84a7eb9ad8b36237ab83d628300
Commit: 18100b8bcc49b84a7eb9ad8b36237ab83d628300
Parent: 3dcc10f537594ef711d7e72d43256755bdae9cc1
Author: Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate: Thu Oct 22 07:26:25 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Thu Oct 22 07:26:25 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 at 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
More information about the cluster-commits
mailing list