HP3000-L Archives

July 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Donna Garverick <[log in to unmask]>
Reply To:
Donna Garverick <[log in to unmask]>
Date:
Wed, 17 Jul 2002 09:25:39 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
Scott Swartzell wrote:

> Does anyone know of a better way to stop the Apache background
> job other than doing 'abortjob?'

abortjob -- to a posix-based package like apache -- is a 'bad thing
(tm).   it's worse than kill -9 (imo)  yes, there is a better way.....

!job httpstop,www.apache;outclass=,5
!xeq sh.hpbin.sys "-c 'kill -TERM `cat logs/httpd.pid`'"
!pause job="httpd,www.apache"
!
!errclear
!continue
!copy ./logs/error_log, ./logs/error_log.!hpdatetime
!if hpcierr = 0
!  purge ./logs/error_log
!  run main.pub.vesoft;&
!    info="purge ./logs/error_log.@(credate<today-30);yes"
!endif
!
!errclear
!continue
!copy ./logs/access_log, ./logs/access_log.!hpdatetime
!if hpcierr = 0
!  purge ./logs/access_log
!  run main.pub.vesoft;&
!    info="purge ./logs/access_log.@(credate<today-30);yes"
!endif
!
!eoj

you will need to develop your own code to manage old log files, if you
don't have vesoft     - d

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2