From dccfc56c5a745f8a7a52fa3525b3af2ea6d0ba44 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 19 Nov 2008 00:02:23 +0100 Subject: savelog savelog on our own Signed-off-by: Joerg Jaspert --- bin/ftpsync | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/ftpsync') diff --git a/bin/ftpsync b/bin/ftpsync index 7958ae7..878741c 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -32,7 +32,7 @@ BASEDIR=${BASEDIR:-"${HOME}"} # Script version. DO NOT CHANGE, *unless* you change the master copy maintained # by Joerg Jaspert and the Debian mirroradm group. # This is used to track which mirror is using which script version. -VERSION="23" +VERSION="0815" # Source our common functions . "${BASEDIR}/etc/common" @@ -114,9 +114,9 @@ cleanup() { fi fi - ${SAVELOG} "${LOGDIR}/rsync-${NAME}.log" - ${SAVELOG} "${LOGDIR}/rsync-${NAME}.error" - ${SAVELOG} "$LOG" > /dev/null + savelog "${LOGDIR}/rsync-${NAME}.log" + savelog "${LOGDIR}/rsync-${NAME}.error" + savelog "$LOG" > /dev/null rm -f "${LOCK}" } @@ -233,8 +233,8 @@ ERRORSONLY=${ERRORSONLY:-"true"} # Want full logs, ie. including the rsync one? FULLLOGS=${FULLLOGS:-"false"} -# How to rotate our log -SAVELOG=${SAVELOG:-"savelog -t -c 14"} +# How many logfiles to keep +LOGROTATE=${LOGROTATE:14} # Our lockfile LOCK=${LOCK:-"${TO}/Archive-Update-in-Progress-${MIRRORNAME}"} -- cgit v1.2.3