2
0
mirror of https://github.com/status-im/nimbus-eth2.git synced 2025-02-27 21:50:33 +00:00
nimbus-eth2/scripts/rotatelogs-compress.sh

10 lines
235 B
Bash
Raw Normal View History

#!/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