oxenstored: move sd_notify_ready out of main loop

Oxenstored only needs to notify systemd its readiness state once. Move
sd_notify_ready out of main loop.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Dave Scott <dave.scott@eu.citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Wei Liu authored and Ian Campbell committed 2015-08-13 10:24:03 +01:00
1 parent da743d1c90
commit 18dd9f7fc2
1 file changed
+2 -2
+2 -2
View File
@@ -428,11 +428,11 @@ let _ =
process_domains store cons domains
in
if Systemd.launched_by_systemd () then
Systemd.sd_notify_ready ();
while not !quit
do
try
if Systemd.launched_by_systemd() then
Systemd.sd_notify_ready ();
main_loop ()
with exc ->
error "caught exception %s" (Printexc.to_string exc);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.