[wellylug] apache2ctl vs apache2 restart

Sigurd Magnusson sigurd at silverstripe.com
Tue May 1 08:48:47 NZST 2007


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?)
 
 Siggy
 
 Sigurd Magnusson
 SilverStripe
 sigurd at silverstripe.com
 +64 4 978 7332 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070501/5bad3db1/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 344 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070501/5bad3db1/attachment.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1622 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070501/5bad3db1/attachment-0001.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 934 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070501/5bad3db1/attachment-0002.gif 


More information about the wellylug mailing list