X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafm-user-daemon.c;h=a7053815a6cbf7a67b0ce4de0483468631b7b37a;hb=941eb7ef734e7d6a9de9c7af13345e63f708d169;hp=c75aadb876c7e31e9c29191dc28dd41e71e61029;hpb=b6afa1aa893544b459cb767cc5a2ad8d2148228c;p=src%2Fapp-framework-main.git diff --git a/src/afm-user-daemon.c b/src/afm-user-daemon.c index c75aadb..a705381 100644 --- a/src/afm-user-daemon.c +++ b/src/afm-user-daemon.c @@ -29,6 +29,7 @@ #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 @@ -487,10 +488,15 @@ static void on_uninstall(struct sd_bus_message *smsg, const char *msg, void *unu */ 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 */