From b8c19a579f778a4b607528877e62a07ecc6c33b4 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 9 Oct 2020 15:47:41 +0000 Subject: Better documentation on readiness notification --- doc/notifywhenup.html | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/doc/notifywhenup.html b/doc/notifywhenup.html index d788938..f7d4ce8 100644 --- a/doc/notifywhenup.html +++ b/doc/notifywhenup.html @@ -91,5 +91,104 @@ for readiness, and route its result into the s6 notification system: s6-notifyoncheck.

+

How to use a check program with s6

+ + + +

How to design a daemon so it uses the s6 notification mechanism +without resorting to polling

+ +

+ The s6-notifyoncheck mechanism was +made to accommodate daemons that provide a check program but do not notify +readiness themselves; it works, but is suboptimal. + If you are writing the foo daemon, here is how you can make things better: +

+ + + +

+ The user who then makes foo run under s6 just has to do the +following: +

+ + + +

What does s6-supervise do with this +readiness information?

+ + + -- cgit v1.2.3