[systemd-devel] monitoring systemd unit flapping

Reindl Harald h.reindl at thelounge.net
Tue Apr 25 17:35:40 UTC 2017



Am 25.04.2017 um 17:30 schrieb Jeremy Eder:
> If we have a service that is flapping because it's crashing after 
> startup...what's the right way to monitor for that condition?  
> Eventually it triggers startburstlimit, was thinking that if we hit 
> startburstlimit that the service could set some special bit that we 
> could look for.
> 
> Like ... systemctl is-flapping myservice --quiet
> 
> Any other possibilities?

just put "RestartSec=1" in the unit-file

the default is ridiculous low and easily triggers the restart-limit


More information about the systemd-devel mailing list