Commit e9e40967 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

added logrotate docu

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3869
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 8b126392
......@@ -7,6 +7,31 @@
# This file should be installed in /etc/logrotate.d on OpenSuSE systems
# ============================================================================
#
# logrotate configuration for dl1 log files:
# /var/log/dl1log /var/log/dl1logall
# compress
# compress old logs with gzip
# dateext
# add the current date to the name of the old log files
# maxage 365
# logs are rotated if they are older than 365 days
# missingok
# if the log file does not exist, do not issue an error message
# notifempty
# do not rotate if log file exists but is empty
# size +4096k
# logs are rotated if the file size is larger tan 4096kByte
# create 644 root root
# immediately after rotation and before the postrotate script is run
# a new log file is created with the given permissions an ownership
# sharedscripts
# do not run postrotate script for each single log file; run it for all
# log files at once
# postrotate
# /etc/init.d/syslog reload
# endscript
# reload syslog daemon after rotating log files
#
# used by all syslog daemons
/var/log/dl1log /var/log/dl1logall {
compress
......
......@@ -10,6 +10,7 @@
% 22/12/2008 V1.0 Thomas Forbriger
% 15/10/2010 V1.1 comment on message() versus match() filter in
% syslog-ng
% 18/04/2011 V1.2 added logrotate documentation
%
% ============================================================================
%
......@@ -353,12 +354,39 @@ log { source(DL1); filter(f_dl1_notice); destination(dl1log); };
[...]
\end{verbatim}
%----------------------------------------------------------------------
\subsection{\texttt{/etc/logrotate.d/DL1\_logrotate.conf}}
\label{sec:conf:syslog:logrotate}
The log files will grow unlimited.
For this reason on each host maintaining a local copy of the log files,
a \texttt{logrotate} configuration file should be installed in
\texttt{/etc/logrotate}:
\begin{verbatim}
[...]
/var/log/dl1log /var/log/dl1logall {
compress
dateext
maxage 365
missingok
notifempty
size +4096k
create 644 root root
sharedscripts
postrotate
/etc/init.d/syslog reload
endscript
}
[...]
\end{verbatim}
\clearpage
%----------------------------------------------------------------------
\section{Programs}
Source code is is not documented here.
Source code is not documented here.
You can find the source documentation at
\begin{quote}
\verb+http://www-gpi.physik.uni-karlsruhe.de/pub/forbriger/txt/mycode.html+
\verb+http://www.rz.uni-karlsruhe.de/~bi77/txt/cxx/ThiesDL1/html/index.html+
\end{quote}
There you will find a documentation for the DL1 software as well as a small
library for serial port access.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment