INN commit: branches/2.5/scripts (scanlogs.in)
INN Commit
rra at isc.org
Sun Nov 15 19:26:22 UTC 2009
Date: Sunday, November 15, 2009 @ 11:26:22
Author: iulius
Revision: 8816
No need to treat expire.log differently than other log
files during its rotation.
Patch from Florian Schlichting.
Modified:
branches/2.5/scripts/scanlogs.in
-------------+
scanlogs.in | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
Modified: scanlogs.in
===================================================================
--- scanlogs.in 2009-11-15 19:25:44 UTC (rev 8815)
+++ scanlogs.in 2009-11-15 19:26:22 UTC (rev 8816)
@@ -117,7 +117,7 @@
fi
## Make sure these .old files exist, in case innd is down.
- for F in ${LOG} ${ERRLOG} ${EXPLOG} ; do
+ for F in ${LOG} ${ERRLOG} ; do
if [ ! -f ${F}.old ]; then
rm -f ${F}.old
cp ${F} ${F}.old
@@ -162,7 +162,7 @@
BASE=`basename ${F}`
rm -f ${OLD}/${BASE}
case ${F} in
- ${SYSLOG_CRIT}|${ERRLOG}|${EXPLOG}|${LOG}|${SYSLOG_NOTICE})
+ ${SYSLOG_CRIT}|${ERRLOG}|${LOG}|${SYSLOG_NOTICE})
## Make a link that can be deleted (since if not rotating
## we delete the copy that is made in ${TMPDIR}).
mv ${F}.old ${OLD}/${BASE}
@@ -225,7 +225,7 @@
## Make a snapshot of what we need for below.
ctlinnd -s pause "Snapshot log and syslog files" 2>&1
- for F in ${SYSLOG_CRIT} ${ERRLOG} ${EXPLOG} ${LOG} ${SYSLOG_NOTICE} ; do
+ for F in ${SYSLOG_CRIT} ${ERRLOG} ${LOG} ${SYSLOG_NOTICE} ; do
BASE=`basename ${F}`
rm -f ${OLD}/${BASE}.0
cp ${F} ${OLD}/${BASE}.0
@@ -290,9 +290,6 @@
fi
fi
-OLD_SYSLOG=${OLD}/${EXPLOG}.0
-rm -f ${EXPLOG}
-
## Compress and rotate the logs.
if ${ROTATE} ; then
cd ${OLD}
More information about the inn-committers
mailing list