The filetrigger for packages that need to reload httpd runs systemctl reload-or-try-restart httpd.service, which looking at the man page should be the right thing to do. We want it to reload the service if it's running, or do nothing if it's not. The systemctl man page says: reload-or-try-restart PATTERN... Reload one or more units if they support it. If not, restart them instead. This does nothing if the units are not running. Note that, for compatibility with SysV init scripts, force-reload is equivalent to this command. Yet, when these filetriggers run while httpd.service isn't running (or if you just run that systemctl command), it says: Job for httpd.service failed. See "systemctl status httpd.service" and "journalctl -xe" for details. and systemctl status shows: Unit httpd.service cannot be reloaded because it is inactive. It should not be printing that "failed" message. As the man page states, in this case, it should literally do nothing. Running reload-or-try-restart on an inactive service should not fail, should not be considered a failure, and should not print a failure message. The fact that it does could make someone accidentally hyperventilate as they watch their urpmi --auto-select run :o) It should save such a failure message for cases in which httpd.service *is* running, and the httpd -k graceful command that will then be run when it does reload the service exits with a non-zero exit status. This would generally indicate some kind of actual failure which would need to be attended to. Reproducible: Steps to Reproduce:
Whiteboard: (none) => MGA5TOO
Yup, the message is a bit different now I think, but the principle is the same: [root@jimmy ~]# systemctl reload-or-try-restart httpd Job for httpd.service invalid. But: [root@jimmy ~]# systemctl try-restart httpd [root@jimmy ~]# For now I've opened: https://github.com/systemd/systemd/issues/688
See Also: (none) => https://github.com/systemd/systemd/issues/688
Upstream fix: https://github.com/systemd/systemd/commit/3282591dc30b2934a895c7403d2f0b0690260947
Version: Cauldron => 5Whiteboard: MGA5TOO => (none)
I understand this issue isn't valid for Mageia 6 & cauldron since at least August last year. We regret if this issue didn't get fixed in Mga5 Closing as OLD, because Mageia 5 has officially reached its End of Life on December 31st, 2017 https://blog.mageia.org/en/2017/11/07/mageia-5-eol-postponed/ It only continued to get important security updates since then, but non-security bugs have no chance of still getting fixed.
Status: NEW => RESOLVEDResolution: (none) => OLDCC: (none) => marja11