File: cron.weekly

package info (click to toggle)
cfengine 1.4.9-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 3,540 kB
  • ctags: 1,861
  • sloc: ansic: 25,408; sh: 1,708; perl: 1,088; lex: 690; makefile: 435; lisp: 182; yacc: 101; csh: 24
file content (13 lines) | stat: -rw-r--r-- 224 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh
#
# cron script to rotate cfengine log files
#
# Written by Brian White <bcwhite@pobox.com>

cd /var/log
LOG=cfengine.log
KEEP=4

if [ -f $LOG ]; then
    savelog -u root -g adm -m 644 -c $KEEP $LOG >/dev/null
fi