Zlogrotate – Znyx Networks bh5700 User Manual

Page 230

Advertising
background image

zlogrotate

NAME

zlogrotate

Rotates log files.

SYNOPSIS

zlogrotate [-b] [-t time] [-s segment size] [-n # of files] [-f file
to rotate]

DESCRIPTION

zlogrotate rotates the selected file every [time] seconds if the file is larger than [segment
size]. It will keep only the number of files selected. zlogrotate is called from
/etc/init.d/rcS by default with no parameters.

OPTIONS

-b

Do not background the process - i.e. run in foreground.

-t <time> the time between logfile checks in seconds (default

60)

-s <size> the targeted file segment size, in kilobytes
(default 256)

-n <# of files> The number of segments kept on the system

(default 4)

-f <file> The file to rotate (default /var/log/messages)

EXAMPLES

To start zlogrotate with the default values,

zlogrotate

Ethernet Switch Blade User's Guide

release 3.2.2j

page 230

Advertising