File: cron.weekly

package info (click to toggle)
sauce 0.9.1
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 476 kB
  • sloc: tcl: 4,363; sh: 186; makefile: 129
file content (15 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# $Id: cron.weekly,v 1.3 2004/09/05 15:21:22 ian Exp $

. /etc/sauce/sys-config

test -x /usr/sbin/sauceadmin || exit 0
egrep '^\#.*sauce' /etc/inittab >/dev/null || exit 0

# Cycle logs

cd /var/log/sauce
savelog -c $SAUCE_LOGS_SAVE -m $SAUCE_LOGS_MODE \
	-u $SAUCE_USER -g $SAUCE_GROUP \
	startup.log debug.log notice.log dbreasons.log error.log fatal.log
sauceadmin reopenlogs