Re: apache reload v. apache restart
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, 15.11.2004 at 11:04 +0000, Richard Lyons wrote:
> > > I'm still trying to find a workaround. 'restart' did not work for me.
> > > Doing it by hand from the command line 'stop' followed by 'start' works
> > > 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 line,
> > 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.
Yeah, the bug traffic suggests something like that. It should work as a
'hack', but can't be used more generally. On some systems, 5 seconds
isn't long enough.
Dave.
- --
Dave Ewart - davee@sungate.co.uk - jabber: davee@jabber.org
All email from me is now digitally signed, key from http://www.sungate.co.uk/
Fingerprint: AEC5 9360 0A35 7F66 66E9 82E4 9E10 6769 CD28 DA92
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBmIKSnhBnac0o2pIRAqSfAKCZjpd0gPEPzCzaEHQ5urm6t4GVAACg7BW7
wMGFsPU1+V3qpwFi5DM5PEI=
=p3du
-----END PGP SIGNATURE-----
Reply to: