troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
622 stars 61 forks source link

Add ready:script for services, called when daemon is ready #300

Closed troglobit closed 1 year ago

troglobit commented 1 year ago

We already have support for pre: and post: scripts that run right before and right after a service. When a monitored daemon has completed its internal setup, and is ready to service requests, opinions differ on how to notify the rest of the world.

The current support (PID file notification) can be the starting point for the ready: script feature. When #299 is completed it can hook into this mechanism as another trigger (and also a trigger for creating the PID file, if that is requested).

See #298 for a background.