argus/argus.cron
Jon Ciesla 3147762253 Introduce new systemd-rpm macros in argus spec file, BZ 850029
Missing argus client: ragraph, BZ 1152650
Add cron.daily rotation of argus data file, BZ 1219565
remove executable permission bits from argus.service, BZ 1252117
2015-09-15 11:03:33 -05:00

8 lines
222 B
Bash

#!/bin/sh
ARGUSPATH=/var/lib/argus
# rotate and keep a copy of the argus log
cd $ARGUSPATH
mv argus.out archive/argus.out.`date +%Y-%m-%d`
gzip archive/argus.out.`date +%Y-%m-%d`
/sbin/tmpwatch -m 366d $ARGUSPATH/archive