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
8 lines
222 B
Bash
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
|