iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—522659-001
7-24
Rotating Log Files
For example, the following command:
: httpd -rollover configfile_name
saves current log files and starts new ones without bringing down the server. If the log
file names have been changed in the configuration file, the server will continue to use
the old names.
The following command:
: httpd -start -rollover configfile_name
starts the server, saves the log files that were current when the server was stopped, and
opens new log files.
The following command:
: httpd -restarth -rollover configfile_name
dynamically restarts the server so that configuration changes can take effect
immediately. The iTP Secure WebServer continues operation, the log files that were
current when the server was started are saved, and new log files are opened.
The following command:
: httpd -restart -rollover configfile_name
This command stops the server, then immediately restarts it. The log files that were
current when the server was stopped are saved and new ones are created on restart.
The
httpd command is described in Section 6, Managing the iTP Secure WebServer
Using Scripts, and in the iTP Secure WebServer reference pages.
Log File Naming Conventions
When you automatically rotate log files, current log files are saved under their
configured names, but a timestamp is appended to the name in the form
mm-dd-[y]yy.hh.mm. You can use the compress command to archive the files as
shown in the following examples:
: cd /usr/tandem/webserver/logs
: compress ../logs/elog11-23-96.19:34
: cd /usr/tandem/webserver/logs
: compress ../logs/elog04-11-102.10:20
Note. The year field in the timestamp represents the number of years since 1900. Therefore,
in the above examples, the first timestamp is for the year 1996, and the second timestamp is
for the year 2002.