Bug 66626 - Register handler for crash of services
Summary: Register handler for crash of services
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-05 18:05 UTC by Sung-jae Park
Modified: 2014-06-25 10:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.