mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-12 07:00:04 +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
|
||||
log "Service: ${service}"
|
||||
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 " Checking if current logfile needs archiving..."
|
||||
@ -106,7 +106,7 @@ do
|
||||
fi
|
||||
|
||||
# Now compress the newly archived log
|
||||
gzip -9v "${ARCHIVED_NAME}"
|
||||
gzip -9 "${ARCHIVED_NAME}"
|
||||
log " DONE"
|
||||
else
|
||||
log " No"
|
||||
|
Loading…
x
Reference in New Issue
Block a user