#include "verbose.h"
#include "utils-jbus.h"
#include "utils-json.h"
+#include "utils-systemd.h"
#include "afm.h"
#include "afm-launch-mode.h"
#ifdef LEGACY_MODE_WITHOUT_SYSTEMD
*/
static void on_signal_changed(struct json_object *obj, void *unused)
{
- /* update the database */
#ifdef LEGACY_MODE_WITHOUT_SYSTEMD
+ /* update the database */
afm_db_update_applications(afdb);
#else
+ /* enforce daemon reload */
+ systemd_daemon_reload(1);
+ systemd_unit_restart_name(1, "sockets.target");
+
+ /* update the database */
afm_udb_update(afudb);
#endif
/* re-propagate now */