File: cron

package info (click to toggle)
cfingerd 1.4.3-3.2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 652 kB
  • sloc: ansic: 3,770; perl: 500; makefile: 154; sh: 73
file content (14 lines) | stat: -rw-r--r-- 242 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh
#
# cron script to rotate cfingerd log files.
#
# Writen by Martin Schulze <joey@infodrom.org>.

cd /var/log
for LOG in cfingerd.log
do
   if [ -f "$LOG" ]; then
      savelog -g adm -m 644 -u root -c 4 $LOG >/dev/null
   fi
done