Re: apache reload v. apache restart
On Monday 15 November 2004 09:36, Dave Ewart wrote:
> On Sunday, 14.11.2004 at 11:14 +0000, Richard Lyons wrote:
> > On Monday 01 November 2004 12:20, Dave Ewart wrote:
> > > System: Woody, fully up to date, runs Apache
> > >
> > > Recently, after an 'apt-get upgrade', Apache has been dying when
> > a
> > > logrotate. I have identified the source of the problem -
> > > '/etc/ini.d/apache reload' kills Apache.
> > >
> > > So, I've changed it to '/etc/ini.d/apache restart' in the
> > > scripts and this seems OK.
> > I'm still trying to find a workaround. 'restart' did not work for
> > Doing it by hand from the command line 'stop' followed by 'start'
> > reliably, but when I put it in the logrotate script it failed too:
> > invoke-rc.d: initscript apache, action "start" failed.
> > So I am still restarting manually every time.
> That is certainly very strange - I see the same behaviour in the
> logrotates as on the command line, i.e. if it fails on the command
> it fails in logrotate; if it works on the command line, it works in
> logrotate too.
I've added 'sleep 5' after the stop and before the start. Maybe that
will do the trick. I'll know next sunday... oops, a sudden thought: I
probably need to go back and put a semicolon after that.