File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ ExecStartPre=find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 -size 0 -delete
1919
2020# архивируем несжатые файлы старше M дней (достаточно одного потока, т.к. файлы относительно небольшие)
2121# выбирайте, что для вас больше подходит (zstd или bzip3):
22- # ExecStart=find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 -size +100k ! -name '*.zst' ! -name '*.bz3' -exec ionice -c2 -n7 -- nice -n19 -- zstd -9 -q --rm '{}' \;
22+ # ExecStart=find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 ! -name '*.zst' ! -name '*.bz3' -exec ionice -c2 -n7 -- nice -n19 -- zstd -9 -q --rm '{}' \;
2323# bzip3 ≥ v1.5.0:
24- # ExecStart=find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 -size +100k ! -name '*.zst' ! -name '*.bz3' -exec ionice -c2 -n7 -- nice -n19 -- bzip3 -b8 --rm '{}' \;
24+ # ExecStart=find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 ! -name '*.zst' ! -name '*.bz3' -exec ionice -c2 -n7 -- nice -n19 -- bzip3 -b8 --rm '{}' \;
2525# bzip3 < v1.5.0:
26- ExecStart =find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 -size +100k ! -name '*.zst' ! -name '*.bz3' -exec ionice -c2 -n7 -- nice -n19 -- bzip3 -b8 '{}' \; -exec rm -f '{}' \;
26+ ExecStart =find ${LOG_DIR} -maxdepth 1 -type f -mtime +1 ! -name '*.zst' ! -name '*.bz3' -exec ionice -c2 -n7 -- nice -n19 -- bzip3 -b8 '{}' \; -exec rm -f '{}' \;
2727
2828[Install]
2929WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments