mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-19 01:57:40 +03:00
contrib/eddn-logs-archive: Make non-verbose
This script has been proven for months, quieten it for potentially no crontab output unless there's a problem.
This commit is contained in:
parent
efd9905c17
commit
53e099a9f4
@ -78,7 +78,7 @@ for service in gateway monitor relay ;
|
|||||||
do
|
do
|
||||||
log "Service: ${service}"
|
log "Service: ${service}"
|
||||||
log " Expiring old logs..."
|
log " Expiring old logs..."
|
||||||
find . -name "${service}.log.*.gz" -a -atime +${MAX_LOGFILE_AGE} -exec rm -fv {} \;
|
find . -name "${service}.log.*.gz" -a -atime +${MAX_LOGFILE_AGE} -exec rm -f {} \;
|
||||||
log " DONE"
|
log " DONE"
|
||||||
|
|
||||||
log " Checking if current logfile needs archiving..."
|
log " Checking if current logfile needs archiving..."
|
||||||
@ -106,7 +106,7 @@ do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Now compress the newly archived log
|
# Now compress the newly archived log
|
||||||
gzip -9v "${ARCHIVED_NAME}"
|
gzip -9 "${ARCHIVED_NAME}"
|
||||||
log " DONE"
|
log " DONE"
|
||||||
else
|
else
|
||||||
log " No"
|
log " No"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user