Bug 66626

Summary: Register handler for crash of services
Product: systemd Reporter: Sung-jae Park <nicesj>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Sung-jae Park 2013-07-05 18:05:15 UTC
Is it possible to register a crash handler?
Like service PreStart/Stop or PostStart/Stop?
We can execute simple command using ExecStartPre, ExecStartPost , ...
But there is no "ExecAbrt" for handling the crash(abort) of running service.

Is it possible to handle the Abort(abnormal termination) of service(daemon)?
(Not only the restarting service. do something before right after it is crashed)
Comment 1 Lennart Poettering 2013-07-26 01:54:11 UTC
There's OnFailure= but that is a lot more generic.
Comment 2 Lennart Poettering 2014-06-25 10:07:43 UTC
I am pretty sure OnFailure= should be used for this, plus some tools that then analyzes why a service failed.

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.