- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- CSWS 2.1 log rotation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 10:06 AM
01-02-2007 10:06 AM
OpenVMS V8.2 (cluster)
CSWS V2.1 (brand new installation; no content other than installation splash screen)
Problem:
When I $ RENAME access_log and error_log, and then
$ @sys$startup:apache$startup graceful
the new log files are created, but a
$ show device/files apache$root
shows that process APACHE$SWS has both the old and new log files open -- indefinitely (as far as I can tell). If I repeat the procedure, then I show APACHE$SWS with 3 sets of open log files.
As there is no Web activity, the switch should take place immediately (at least as I read the documentation).
Of course, if I shut down and start up CSWS the old log files are closed, but this isn't an acceptable work-around.
Can anyone reproduce the experience or have any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 05:38 PM
01-02-2007 05:38 PM
Re: CSWS 2.1 log rotation
I recall having the same issue with older versions of SWS. We solved it by nightly stopping the webserver, renaming the logfiles, and starting the webserver again.
Not that elegant but it works for us.
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 06:10 PM
01-02-2007 06:10 PM
Re: CSWS 2.1 log rotation
CSWS12_UPDATE V7.0, and at (after) year end,
I stop the server, then manually edit the
access log to save the previous year's data
somewhere else, then leave only the current
(new) year's data in the file, and finally
restart the server.
Not classy, but simple and semi-reliable (if
I can trust me).
Considering that in this version, even FLUSH
didn't work right, I wouldn't trust anything
fancier than a complete stop-start cycle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2007 10:05 AM
01-04-2007 10:05 AM
SolutionNo need to interfere with normal processing, it can be done 'on the fly'.
I had this sequence in my batch procedure to cycle the logs each monday at midnight:
$ @APACHE$COMMON:[000000]APACHE$SETUP
$ httpd -k flush
$ httpd -k new
There have been (or still are) some issues with these commands. But again: consult ALL SWS documentation.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2007 08:48 AM
01-15-2007 08:48 AM
Re: CSWS 2.1 log rotation
The suggested solution seems to work just great!
However, I'm still left with a question.
Should it be the "flush" before the "new" or the "new" before the "flush"? Or maybe a "flush" both before and after the "new"?
I'm unable to find whatever manual that was referred to. The CSWS 2.1 Installation and Configuration Guide doesn't seem to refer to this subject. The CSWS 2.1-1 Release Notes refers to the "flush" and "new" commands, but doesn't go into any specificity on how logs should be rotated. And the Apache documentation subject "Log Rotation", which is quite clear and unambiguous, points to the mistaken approach I initially tried.
Please, when commenting "RTFM" -- name the manual -- and I will be happy to read it and acknowledge my ignorance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2007 10:48 AM
01-29-2007 10:48 AM
Re: CSWS 2.1 log rotation
Thanks again for the replies!