mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Fix #299: add support for service readiness notification
This patch adds service readiness notification to support daemons employing systemd and s6 notification. Complementing the native Finit readiness support using PID files that exist already. The two have slightly different ways of implementing readiness: - https://www.freedesktop.org/software/systemd/man/sd_notify.html - https://skarnet.org/software/s6/notifywhenup.html Finit now provides both a NOTIFY_SOCKET environemnt variable, for systemd, and a way to start s6 daemons with a descriptor argument. For details on the syntax, see the `service` documentation. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
6e863a7872
commit
912a281ee2
10 files changed
+287
-19
No files matched your search
@@ -29,8 +29,12 @@
|
||||
|
||||
int client_connect (void);
|
||||
int client_disconnect (void);
|
||||
int client_socket (void);
|
||||
|
||||
int client_request (struct init_request *rq, ssize_t len);
|
||||
int client_send (struct init_request *rq, ssize_t len);
|
||||
int client_command (int cmd);
|
||||
|
||||
svc_t *client_svc_iterator (int first);
|
||||
svc_t *client_svc_find (const char *arg);
|
||||
svc_t *client_svc_find_by_cond (const char *arg);
|
||||
|
||||
Reference in new issue
Block a user