Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104641
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Requires=dbus.socket
[Service]
+Type=notify
+NotifyAccess=main
ExecStart=@EXPANDED_BINDIR@/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
ExecReload=@EXPANDED_BINDIR@/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
OOMScoreAdjust=-900
#endif /* DBUS_UNIX */
_dbus_verbose ("We are on D-Bus...\n");
+ _dbus_daemon_report_ready ();
_dbus_loop_run (bus_context_get_loop (context));
bus_context_shutdown (context);
Requires=dbus.socket
[Service]
+Type=notify
+NotifyAccess=main
ExecStart=@EXPANDED_BINDIR@/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
ExecReload=@EXPANDED_BINDIR@/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
return _dbus_string_append (str, DBUS_SESSION_CONFIG_FILE);
}
+
+/**
+ * Report to a service manager that the daemon calling this function is
+ * ready for use. This is currently only implemented for systemd.
+ */
+void
+_dbus_daemon_report_ready (void)
+{
+#ifdef HAVE_SYSTEMD
+ sd_notify (0, "READY=1");
+#endif
+}
return _dbus_get_config_file_name(str, "session.conf");
}
+
+void
+_dbus_daemon_report_ready (void)
+{
+}
DBusError *error);
void _dbus_rlimit_free (DBusRLimit *lim);
+void _dbus_daemon_report_ready (void);
+
/** @} */
DBUS_END_DECLS