mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Follow-up to 10b72f1: periodically age service crash counter
Traditionally we've reset the service restart counter on two occasions: 1) when a service reaches its max crash count (default 10), and 2) when a service somehow "stabilizes" In the second case the service is restored to normal running state and we "forget" its bad previous behavior. Meaning we cannot catch daemons that act in an unstable manner outside the "rage quit" scenario. This patch allows for slowing aging (decrementing) the restart counter once every five minutes. Meaning we still catch rage quitters but now are also able catch other types of misbehavior. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
ee867e7f3b
commit
449bc7d12b
5 files changed
+94
-1
No files matched your search
@@ -705,6 +705,11 @@ int main(int argc, char *argv[])
|
||||
_d("Starting bootstrap finalize timer ...");
|
||||
schedule_work(&bootstrap_work);
|
||||
|
||||
/*
|
||||
* Background service tasks
|
||||
*/
|
||||
service_init();
|
||||
|
||||
/*
|
||||
* Enter main loop to monitor /dev/initctl and services
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user