[Bug 1488962] Re: systemd does not notice when services created via systemd-sysv-generator fail
Ubuntu Foundations Team Bug Bot
1488962 at bugs.launchpad.net
Fri Apr 8 12:28:52 UTC 2016
The attachment "debdiff" seems to be a debdiff. The ubuntu-sponsors
team has been subscribed to the bug report so that they can review and
hopefully sponsor the debdiff. If the attachment isn't a patch, please
remove the "patch" flag from the attachment, remove the "patch" tag, and
if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1488962
Title:
systemd does not notice when services created via systemd-sysv-
generator fail
Status in apache2 package in Ubuntu:
In Progress
Bug description:
The systemd service generated from /etc/init.d/apache2 via systemd-
sysv-generator contains the line
RemainAfterExit=yes
causing systemd to ignore crashes of the service. In order to
reproduce this, add a non-existing address to /etc/apache2/ports.conf,
which will cause the apache2 service to fail.
However, "systemctl status apache2" will still show "active(exited)",
e.g. will not recognize the service as failed. In particular,
"systemctl is-failed apache2" will still return "active" instead of
"failed".
Expected result: "systemctl is-failed apache2" should return "failed",
so that monitoring script can detect the error.
The solution would probably be to include a proper native systemd
service definition instead of using the converted sysv service.
$ apt-cache policy apache2
apache2:
Installed: 2.4.10-9ubuntu1.1
Candidate: 2.4.10-9ubuntu1.1
Version table:
*** 2.4.10-9ubuntu1.1 0
500 http://eu.archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages
100 /var/lib/dpkg/status
2.4.10-9ubuntu1 0
500 http://eu.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1488962/+subscriptions
More information about the Ubuntu-sponsors
mailing list