Bug 56109

Summary: stop not executed upon watchdog failure
Product: systemd Reporter: Jeremy Williams <jeremy.williams>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Log of systemd with no restart after failure
Log of systemd with restart after failure enabled
Simple watchdog test application
Watchdog test service definition

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.