2
0
mirror of https://github.com/status-im/nimbus-eth2.git synced 2025-02-28 06:00:39 +00:00
nimbus-eth2/scripts/rotatelogs-compress.sh
Jacek Sieka ff94e1a212
Document log rotation ()
* Document log rotation

* phrasing updates

Co-authored-by: Dustin Brody <tersec@users.noreply.github.com>
2021-02-18 07:57:41 +01:00

10 lines
235 B
Bash
Executable File

#!/bin/sh
# Helper script for Apache rotatelogs to compress log files on rotation - `$2` contains the old log file name
if [ -f "$2" ]; then
# "nice" prevents hogging the CPU with this low-priority task
nice gzip -9 "$2"
fi