Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Don't list terminated processes
[src/app-framework-main.git]
/
src
/
afm-user-daemon.c
diff --git
a/src/afm-user-daemon.c
b/src/afm-user-daemon.c
index
c75aadb
..
a705381
100644
(file)
--- 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 "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
#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)
{
*/
static void on_signal_changed(struct json_object *obj, void *unused)
{
- /* update the database */
#ifdef LEGACY_MODE_WITHOUT_SYSTEMD
#ifdef LEGACY_MODE_WITHOUT_SYSTEMD
+ /* update the database */
afm_db_update_applications(afdb);
#else
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 */
afm_udb_update(afudb);
#endif
/* re-propagate now */