[wellylug] apache2ctl vs apache2 restart

Cliff Pratt enkidu at cliffp.com
Tue May 1 09:17:01 NZST 2007


Jim Cheetham wrote:
> On 01/05/07, Sigurd Magnusson <sigurd at silverstripe.com> wrote:
>> Why do you think Debian has apache2 restart instead?
> 
> It's a consistent interface. For all service applications there will
> be an init.d scrpt, and they will all implement "start", "stop" and
> "restart". Debian lives by consistency :-)
> 
>>  I've sometimes
>>  found the apache2 restart stuffs up apache by running two copies that
> 
> That would therefore be a fault specific to the Debian scripts
> packaged with apache.
> 
>>  Can I just do "graceful" for logrotate to work (i.e. for apache to
>>  reopen its log files?)
> 
> Yes, http://httpd.apache.org/docs/2.0/stopping.html tells us that
> 'graceful' will cause a re-open of log files.
> 
Best test that. It did not do this at one time, though that *may* have 
been back in the 1.3 days... Back at the dawn of time, anyway.

Cheers,

Cliff




More information about the wellylug mailing list