From 75c4223a7f5a8a073ba0d898ef9d841fdaef2f63 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 21 Mar 2018 18:00:10 +0000 Subject: Add s6-svdt-clear, s6-permafailon --- doc/s6-permafailon.html | 98 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 doc/s6-permafailon.html (limited to 'doc/s6-permafailon.html') diff --git a/doc/s6-permafailon.html b/doc/s6-permafailon.html new file mode 100644 index 0000000..f749d5f --- /dev/null +++ b/doc/s6-permafailon.html @@ -0,0 +1,98 @@ + + + + + + s6: the s6-permafailon program + + + + + + +

+s6
+Software
+skarnet.org +

+ +

The s6-permafailon program

+ +

+s6-permafailon is a program that is meant to be used +in the ./finish script of a +service directory supervised by +s6-supervise. When used, it +reads and analyses the death tally of a service (i.e. the recent +process death events that happened), and if the death tally +matches a given pattern, it causes permanent failure +of the service, i.e. it tells the supervisor not to try and +restart it. +

+ +

Interface

+ +
+     s6-permafailon secs deathcount events prog...
+
+ + + +

+ events is a comma-separated list of events. An event can be +one of the following: +

+ + + +

Usage

+ + + +

Example

+ +

+ s6-permafailon 60 5 1,101-103,SIGSEGV,SIBBUS prog... +will exit 125 if the service has died 5 times in the last 60 seconds with +an exit code of 1, 101, 102 or 103, a SIGSEGV or a SIGBUS. Else it will +chainload into the prog... command line. +

+ + + -- cgit v1.2.3