← Back to team overview

rapache-devel team mailing list archive

[Bug 240524] Re: Gracful apache restart so users arn't disconnected

 

I asked at #apache @ freenode and they told me this:
First run 'sudo apache2ctl -t' to test the configuration (syntax). If it's good you can restart using 'sudo apache2ctl -k graceful'.

<qense> What's the best way to restart/reload the apache server on ubuntu? I'd like to do it as graceful and unnoticeable as possible.
<jthomas> apache2ctl -k graceful
<jthomas> qense: then makle sure its running with: ps auwx |grep apache
<jthomas> for *buntu it may be: sudo apache2ctl -k graceful
<qense> ok, thx
<jthomas> qense: first run: sudo apache2ctl -t << this tests the settings to make sure it'll come back up
<jthomas> well, more likely to come back up
<qense> :)

-- 
Gracful apache restart so users arn't disconnected
https://bugs.launchpad.net/bugs/240524
You received this bug notification because you are a member of Rapache
Developers, which is subscribed to Remote Apache Management tool .

Status in rapache: New

Bug description:
use "apache2ctl -k graceful" so that current users are not disconnected by apache being restarted

from man page  "apachectl  script  returns a 0 exit value on success, and >0"



References