On 07/09/2014 03:03 PM, Mauricio Tavares wrote: > Since I missed most of the story, can you specify that it is ok for > this program to restart whenever it crashes, but this one you will > stop restarting after N crashes (N<=0) and then report? While I am certainly not an expert with systemd, it appears that you have a more generic mechanism than that in the OnFailure directive in the unit files. So you can basically do any sort of thing on a unit failure, including restart or start a different unit or whatever.