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>
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);