Richard Kettlewell <inva…@invalid.invalid> wrote:
> https://httpd.apache.org/docs/current/stopping.html#hup describes the
> effect of this option:
>
> apachectl -k restart
>
> Sending the HUP or restart signal to the parent causes it to kill
> off its children like in TERM, but the parent doesn't exit. It
> re-reads its configuration files, and re-opens any log files. Then
> it spawns a new set of children and continues serving hits.
I see, I checked the apache2ctl man page's description on Debian
but it didn't bother to mention "the parent doesn't exit":
restart Restarts the Apache daemon by sending it a SIGHUP. If
the daemon is not running, it is started. This command
automatically checks the configuration files via con-
figtest before initiating the restart to to catch the
most obvious errors. However, it is still possible for
the daemon to die because of problems with the configura-
tion.
> i.e. in Apache speak, "restart" doesn't actually mean restarting the
> server at all, at least in the common sense of restart meaning stop and
> then start from scratch.
Yeah, I guess I didn't know to read the man page in Apache speak.
In my case Lograte does a "graceful restart" whenever the log file
is changed, so it's guaranteed to go wrong at least shortly after
the update. Which also means this can't have been a problem with
earlier PHP updates. I'm not sure why it wasn't stopped and started
automatically when the update ran. The package's scripts are
supposed to run "invoke-rc.d apache2 restart" after installation,
which the Apache logs show causes it to do a "graceful stop" after
receiving SIGWINCH (that "restart" isn't in Apache speak) when
run manually.
--
__ __
#_ < |\| |< _#