DBusString config_file;
dbus_bool_t ret;
+ _dbus_daemon_report_reloading ();
+
/* Flush the user database cache */
_dbus_flush_caches ();
bus_context_log (context, DBUS_SYSTEM_LOG_INFO, "Unable to reload configuration: %s", error->message);
if (parser != NULL)
bus_config_parser_unref (parser);
+
+ _dbus_daemon_report_reloaded ();
return ret;
}
sd_notify (0, "READY=1");
#endif
}
+
+/**
+ * Report to a service manager that the daemon calling this function is
+ * reloading configuration. This is currently only implemented for systemd.
+ */
+void
+_dbus_daemon_report_reloading (void)
+{
+#ifdef HAVE_SYSTEMD
+ sd_notify (0, "RELOADING=1");
+#endif
+}
+
+/**
+ * Report to a service manager that the daemon calling this function is
+ * reloading configuration. This is currently only implemented for systemd.
+ */
+void
+_dbus_daemon_report_reloaded (void)
+{
+#ifdef HAVE_SYSTEMD
+ /* For systemd, this is the same code */
+ _dbus_daemon_report_ready ();
+#endif
+}
_dbus_daemon_report_ready (void)
{
}
+
+void
+_dbus_daemon_report_reloading (void)
+{
+}
+
+void
+_dbus_daemon_report_reloaded (void)
+{
+}
void _dbus_rlimit_free (DBusRLimit *lim);
void _dbus_daemon_report_ready (void);
+void _dbus_daemon_report_reloading (void);
+void _dbus_daemon_report_reloaded (void);
/** @} */