Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Apache v2.0 log flush or new commands

SOLVED
Go to solution
Aaron Sakovich
Super Advisor

Apache v2.0 log flush or new commands

In v1.1+ of SWS, we had the option to issue the @Sys$Manager:Apache$Config {Flush|New} command to cycle the log files. This command no longer works with v2.0. I've read release notes, docu, then googled groups and web, searched these forums, and the Wizard's stuff, and not found any hints on how to do this now.

Can anyone clue me in? Or is this now a totally manual process (shutdown the service, rename the file, restart the service)?

Stuck with a 48MB log I want to recycle,
Aaron
8 REPLIES
Peter Quodling
Trusted Contributor

Re: Apache v2.0 log flush or new commands

Am not handy to a VMS Apache system for a week or two, but.. According to the documentation, it would appear that

@sys$startup:apache$startup GRACEFUL [configfile] (configgile defaults to httpd.conf) will

"Sends a restart signal to the server, but existing client connections are not interrupted. Idle child processes are immediately deleted and replaced. Busy child processes are replaced when the connection is terminated ".

That might do it...



To my way of thinking, that should also flush the log files.
Leave the Money on the Fridge.
Aaron Sakovich
Super Advisor

Re: Apache v2.0 log flush or new commands

Hi Peter,

Sorry, that only restarts the server and flushes the log; it won't create a new one. What would be nice from a consitency standpoint would be if there were an option on that command to create a new logfile, too.

Aaron
Rob Boor
Occasional Advisor
Solution

Re: Apache v2.0 log flush or new commands

There are some undocumented switches with V2.0 (they will be documented with V2.1)
issue a
$@sys$manager:apache$symbols

and

$ httpd -k flush (flushed to logfiles(s) )
$ httpd -k new (creates new logfile(s) )

regards,
Rob Boor,
EMEA OpenVMS Competency Center
It's not a BUG, but a FEATURE
Jan van den Ende
Honored Contributor

Re: Apache v2.0 log flush or new commands

Rob,

(leuk weer eens wat van je te horen!)

Any idea when that comes out?

ANd will the documentation be such that we can know before installing what to expect?

2.0 had soooo many unpleasant surprises! (btw, that is why we reverted to 1.3)

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Willem Grooters
Honored Contributor

Re: Apache v2.0 log flush or new commands

On release: I asked a week or so ago, it should be "end this month, beginning of next". So it will be somewhere in August ;-)
Willem Grooters
OpenVMS Developer & System Manager
Aaron Sakovich
Super Advisor

Re: Apache v2.0 log flush or new commands

Awesome! That's what I was looking for.

Thanks a bunch,
Aaron

P.S. Nice to read about the upcoming release of 2.1. Thanks for that tidbit, too!
Aaron Sakovich
Super Advisor

Re: Apache v2.0 log flush or new commands

Yikes, it doesn't work.

httpd -k new

does nothing other than chew up a few cycles. My log file is still in the same spot, same version, same 50+ MB...

Might I be overlooking something?

Aaron
Rob Boor
Occasional Advisor

Re: Apache v2.0 log flush or new commands

Have you installed the latest update for CSWS V2.0 (CPQ AXPVMS CSWS20_UPDATE V1.0).
On our systems it's working withour problems:
$dir apache$root:[logs]*err*.;/siz
Directory APACHE$SPECIFIC:[LOGS]
error_log.;1 0

$httpd -k new

$dir apache$root:[logs]*err*.;*/siz
Directory APACHE$SPECIFIC:[LOGS]
error_log.;2 0
error_log.;1 1

And the same for the access logfile.

If this doesn't work for you, it's time to log a support call with your local HP office

Rob.
It's not a BUG, but a FEATURE