Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

apache log rotation

9 views
Skip to first unread message

Chris Sharman

unread,
May 12, 2005, 7:58:11 AM5/12/05
to
How do I do this (VMS 7.3-1, Apache 2.0) ?
Is there something better than rename & (graceful) restart ?
When I do that, it dutifully opens new logs, but doesn't close the old
ones ! They're still locked by the apache$sws process.

Alan Winston's book says
@sys$startup:apache$config NEW ! followed by
@sys$startup:apache$config FLUSH

Seems an odd procedure to contain that function, and when I try it, it says:
$ @sys$startup:apache$config new

HP Secure Web Server for OpenVMS Alpha
[based on Apache]

This procedure helps you define the operating environment
required to run the Secure Web Server on this system.

ERROR: Do not configure while the servers are still running
Please shutdown any servers first, then reconfigure.
%SYSTEM-F-ABORT, abort

Thanks,
Chris

tim.b...@hp.com

unread,
May 12, 2005, 8:51:50 AM5/12/05
to
Hi,

Does this help?

$ @sys$manager:apache$symbols
$ httpd -k flush

and/or

$ @sys$manager:apache$symbols
$ httpd -k new

Thanks.
Tim

b...@instantwhip.com

unread,
May 12, 2005, 8:56:16 AM5/12/05
to
purveyor automatically creates a new log on either an hourly, daily,
weekly, monthly or yearly basis depending on what you set it to ... its
just like the ronco man, just set it and forget it!

David B Sneddon

unread,
May 12, 2005, 9:14:30 AM5/12/05
to
b...@instantwhip.com was overheard to say:

> purveyor automatically creates a new log on either an hourly, daily,
> weekly, monthly or yearly basis depending on what you set it to ... its
> just like the ronco man, just set it and forget it!
>
>

Really Boob? So does WASD.

Regards,
Dave.
--
David B Sneddon (dbs) VMS Systems Programmer dbsn...@bigpond.com
Sneddo's quick guide ... http://www.users.bigpond.com/dbsneddon/
DBS freeware http://www.users.bigpond.com/dbsneddon/software.htm

Chris Sharman

unread,
May 12, 2005, 10:12:49 AM5/12/05
to
tim.b...@hp.com wrote:
> Does this help?
>
> $ @sys$manager:apache$symbols
> $ httpd -k flush
>
> and/or
>
> $ @sys$manager:apache$symbols
> $ httpd -k new

That's the business - thanks.
Did I miss some documentation, or is this undocumented ?

httpd -h

knows about a bunch of options, but not that one.
Seems like something which ought to be documented.

Thanks,
Chris

issinoho

unread,
May 12, 2005, 2:55:15 PM5/12/05
to

It should also be noted that the HTTPD executable may not always
function correctly unless the following is executed first,

@apache$root:[000000]apache$setup

Chris, if you get a chance could you cross-post this thread into VAMP.
Thanks, mate.

Alan Winston - SSRL Central Computing

unread,
May 12, 2005, 7:40:24 PM5/12/05
to


I'm not running Apache 2.0 (and won't be until the changes to support
non-STM-LF files are in place), and the book was published before 2.0
came out.

This does actually work on SWS versions prior to 2.0, and it's how my
monthly reset-the-log-files job works.

Apparently it's changed; I'll make a note of that for the next edition.

-- Alan

Paul Sture

unread,
May 23, 2005, 9:58:19 AM5/23/05
to
tim.b...@hp.com wrote:

> Hi,
>
> Does this help?
>
> $ @sys$manager:apache$symbols
> $ httpd -k flush
>
> and/or
>
> $ @sys$manager:apache$symbols
> $ httpd -k new
>

Tim, has the problem reported below been solved? I don't recall ever
seeing an aanouncement that it was fixed.

http://tinyurl.com/9qgba

---- quote ----
Newsgroups: comp.os.vms
Von: "Rick Barry" <b...@star.zko.dec.com>
Datum: Mon, 24 Feb 2003 09:41:37 -0500
Lokal: Mo 24 Feb. 2003 15:41
Betreff: Re: CSWS/Apache 1.3 Log File problems

"ted crane" <googlepos...@tedcrane.com> wrote in message

news:dd169acf.0302...@posting.google.com...

> Please excuse me for being such a bulldog with
> this set of questions, but it seems to me that
> the various postings in reply to my original are
> sortof dancing around the issue.
> [snip]

There are problems with the FLUSH/NEW commands in CSWS 1.2 and 1.3 that
may cause loss of data. We recommend that people not use these commands
until a fix is available (shortly).

There has been a recent report of data loss ("holes in the access log")
when FLUSH/NEW was not used. We're investigating that report, but so
far we have not been able to determine whether there is a software
problem or not. We have not been able to duplicate the problem
internally, but we'll continue to investigate until we have an
explanation for the data loss.

If we discover that there is a problem, we'll fix it and provide a patch
kit.

---- end quote ----

Steven M. Schweda

unread,
May 23, 2005, 10:38:09 AM5/23/05
to
From: Paul Sture <paul....@decus.ch>

> Tim, has the problem reported below been solved? I don't recall ever
> seeing an aanouncement that it was fixed.
>
> http://tinyurl.com/9qgba
>

> [... FLUSH causes holes in log files ...]

I ran into this problem at about the same time it was reported here,
perhaps at CSWS V1.2. I'm now at "Apache/1.3.20 (OpenVMS) mod_ssl/2.8.4
OpenSSL/0.9.6g", and I do not recall seeing any report of a fix.

When I discovered the data loss, I switched from periodic FLUSH to
periodic GRACEFUL. I don't like it much, but I don't do enough serious
stuff here to be troubled by the difference.

If there is a fix beginning in some version or other, I'd like to
know about it, too.

------------------------------------------------------------------------

Steven M. Schweda (+1) 651-699-9818
382 South Warwick Street sms@antinode-org
Saint Paul MN 55105-2547

0 new messages