File: cron.weekly

package info (click to toggle)
listar 0.129a-2.potato2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,692 kB
  • ctags: 2,002
  • sloc: ansic: 27,106; makefile: 906; perl: 105; sh: 61
file content (13 lines) | stat: -rwxr-xr-x 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# listar	Cron script to rotate listar log file weekly.
#

cd /var/log
for LOG in listar.log
do
   if [ -f $LOG ]; then
      savelog -t -g listar -m 640 -u listar -c 7 $LOG >/dev/null
   fi
done