[wellylug] apache2ctl vs apache2 restart
Cliff Pratt
enkidu at cliffp.com
Tue May 1 08:59:58 NZST 2007
Sigurd Magnusson wrote:
>
> SilverStripe
> <http://www.silverstripe.com/home/?utm_source=mailprimer&utm_medium=email>
>
> Logrotate killed apache2 this morning on one of our servers. I see that
> it runs
>
> if [ -f /var/run/apache2.pid ]; then
> /etc/init.d/apache2 restart > /dev/null
> fi
>
> For some reason this stopped apache2 but didn't restart it. (Any ideas
> on this?)
>
>
> However in my runnings of a server I always use
>
> apache2ctl restart
> or
> apache2ctl graceful
>
>
> Why do you think Debian has apache2 restart instead? I've sometimes
> found the apache2 restart stuffs up apache by running two copies that
> clobber each other.
>
> Can I just do "graceful" for logrotate to work (i.e. for apache to
> reopen its log files?)
>
/etc/init.d/apache2 is a wrapper script for apache2ctl.
Cheers,
Cliff
More information about the wellylug
mailing list