mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
test: reproduce pidfile plugin marking systemd services 'started'
Issue #343 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
05b72281e6
commit
3ef52d9324
2 files changed
+27
-9
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user