UPDATE: I just had a server experience downtime due to this bug. An
update of the apache2 package was automatically triggered on a client's
16.04 LTS server on Aug 31 via the unattended-upgrades cron script, and
apparently before this update, the last time the Apache service had been
restarted was done via "apachectl graceful", without an appropriately
modified /usr/sbin/apachectl as described in my initial report, so the
usual unattended-upgrades stop-and-start which follows an Apache update
failed to perform as expected, leaving the service in the stopped state.

Therefore, it appears there is now a definite case where a user invoking
"apachectl graceful" leads to downtime. To mitigate this, you can either
disable/uninstall unattended-upgrades, or patch the /usr/sbin/apachectl
file as described in this bug report.

I have deleted the old patch file and replaced it with an actual correct
one based on the apache2ctl file on my client's server after the latest
apache2 package update, now that I know how diff patch files are
generated

** Patch removed: "diff of /usr/sbin/apache2ctl after correcting issue"
   
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1832182/+attachment/5269883/+files/apache2ctl_diff.txt

** Patch added: "actual diff -u output of before+after editing 
/usr/sbin/apachectl from apache2 version 2.4.18-2ubuntu3.12 in 16.04 LTS"
   
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1832182/+attachment/5286568/+files/apachectl_patch.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832182

Title:
  systemd unable to detect running apache if invoked via "apache2ctl
  graceful"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1832182/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to