Bug 56109 - stop not executed upon watchdog failure
Summary: stop not executed upon watchdog failure
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 23:55 UTC by Jeremy Williams
Modified: 2013-06-06 07:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Log of systemd with no restart after failure (12.01 KB, text/plain)
2012-10-17 23:55 UTC, Jeremy Williams
Details
Log of systemd with restart after failure enabled (12.01 KB, text/plain)
2012-10-17 23:56 UTC, Jeremy Williams
Details
Simple watchdog test application (285 bytes, text/plain)
2012-10-17 23:56 UTC, Jeremy Williams
Details
Watchdog test service definition (128 bytes, text/plain)
2012-10-17 23:57 UTC, Jeremy Williams
Details

Description Jeremy Williams 2012-10-17 23:55:38 UTC
Created attachment 68733 [details]
Log of systemd with no restart after failure

When a simple service experiences a watchdog failure due to lock-up, stop is never called on the service. The service is transitioned to the "failed" state, but no further action is taken.

If "Restart: on-failure" is set, multiple instances of service will be started because the previously failed instances are not stopped.

I've attached a simple test application that just pets the watchdog a few times and then stops. The attached log shows the resulting behavior for both the default case and the "restart: on-failure" case.

Tested with a user instance of systemd v44 on F17.
Comment 1 Jeremy Williams 2012-10-17 23:56:11 UTC
Created attachment 68734 [details]
Log of systemd with restart after failure enabled
Comment 2 Jeremy Williams 2012-10-17 23:56:39 UTC
Created attachment 68735 [details]
Simple watchdog test application
Comment 3 Jeremy Williams 2012-10-17 23:57:06 UTC
Created attachment 68736 [details]
Watchdog test service definition
Comment 4 Lennart Poettering 2013-06-06 07:58:36 UTC
This should be fixed in git now. Closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.