44.222.194.62 |    

Navigation

Google Advertisement

Rotiert Logfiles in einem Verzeichnis und verwendet eine Konfigurationsdatei, in der fuer jedes Logfile gespeichert ist, nach wie vielen Tagen es umkopiert wird. Format der Contig-Datei: logfilename=dauer Dauer in Tagen. Taucht ein Logfile nicht auf ist dauer=7 Tage. Hier eine Beispiel Konfiguration.
# **********************************************************
# file: rotatelogs.cfg
# date: 2005-02-16
# author: Marko Schulz - <mschulz@jamba.net>
# dascription: config file for rotatelogs.sh - Format:
#
# name=duration	# (days)
#
# name is any filename in $logdir.
# **********************************************************

tomcat.log=5
apache.log=1
# Anything with a duration of zero is not rotated
rotatelogs.log=0


Name rotatelogs.sh
Category Bash::Scripts
Date 2010-01-20 12:25:03
Author Marko Schulz
Hits 1889
Rating  
Tags logfiles

Search
 
Full text search by name and content of a snippet.

User online
There are 5 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)