newsyslog.conf - newsyslog(8) configuration file
If a time is specified, the log file will only be trimmed if newsyslog(8) is run within one hour of the specified time. If an interval is specified, the log file will be trimmed if that many hours have passed since the last rotation. When both a time and an interval are specified then both conditions must be satisfied for the rotation to take place.
There is no provision for the specification of a timezone. There is little point in specifying an explicit minutes or seconds component in the current implementation, since the only comparison is ``within the hour''
ISO 8601 restricted time format
The lead-in character for a restricted ISO 8601 time is an `@' sign. The particular format of the time in restricted ISO 8601 is: [[[[[cc yy mm dd ] ] ] ] [T [hh [mm [ss ] ] ] ] .] Optional date fields default to the appropriate component of the current date; optional time fields default to midnight; hence if today is January 22, 1999, the following date specifications are all equivalent:
Day, week, and month time format:
The lead-in character for day, week, and month specification is a `$' sign. The particular format of day, week, and month specification is: [D hh ] [W w [D hh ] ] and [M dd [D hh ] ] respectively. Optional time fields default to midnight. The ranges for day and hour specifications are:
Some examples:
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |