test: reproduce pidfile plugin marking systemd services 'started'

Issue #343

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-01-17 07:22:20 +01:00
1 parent 05b72281e6
commit 3ef52d9324
2 files changed
+27 -9

No files matched your search

+2
View File
@@ -279,6 +279,8 @@ int main(int argc, char *argv[])
if (reloading) {
if (do_notify > 0) {
log("Delaying notify by 3 seconds for notify.sh ...");
sleep(3);
log("Notifying Finit on socket %d, READY=1", do_notify);
if (write(do_notify, "READY=1\n", 8) == -1)
err(1, "Failed sending ready notification to Finit");