launcher: notify systemd about reloading
Hook into the reload notification as systemd expects. This appears to be purely
informational, but seems worth following the recommendations nonetheless.
@@ -1313,6 +1313,10 @@ static int manager_reload_config(Manager *manager) {
Service *service;
int r;
+ r = sd_notify(false, "RELOADING=1");
+ if (r < 0)
+ return error_origin(r);
+
c_rbtree_for_each_entry(service, &manager->services, rb)
service->state = SERVICE_STATE_DEFUNCT;
@@ -1351,6 +1355,10 @@ static int manager_reload_config(Manager *manager) {
if (r)
return error_trace(r);
+ r = sd_notify(false, "READY=1");
+ if (r < 0)
+ return error_origin(r);
+
return 0;
}
