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)
There's OnFailure= but that is a lot more generic.
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.