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 *
|