iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—523346-002
7-25
Rotating Log Files
Secure WebServer continues operation. You run the rollover script from the
/usr/tandem/webserver/conf directory as follows:
: cd /usr/tandem/webserver/conf
: ./rollover
The rollstarth script operates like the rollover script, but dynamically restarts
the iTP Secure WebServer so that configuration changes can take effect without the
iTP Secure WebServer being brought down. The types of configuration changes that
can be introduced dynamically are described in Section 6, Managing the iTP Secure
WebServer Using Scripts. Run the rollstarth script as follows:
: cd /usr/tandem/webserver/conf
: ./rollstarth
Using the httpd command to Rotate Log Files
If your server uses a different configuration file, you can use the httpd command with
the -rollover argument to automatically rotate log files. The -rollover argument
causes httpd to save the current log files for the specified server and to start writing
to new files. It can be used in several ways.
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 continues 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.