Emits reload to systemd when needed
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 15 Mar 2017 10:49:29 +0000 (11:49 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 17 Mar 2017 12:01:40 +0000 (13:01 +0100)
commitfb0f81a1d8b5369842269fa1bdb9ad8d52882491
treece78a61d1c9fdb46be72c6f0e0657e4a6c0abbdd
parent2a8b46d16ea5d0c99831e95b47cab037f220f7af
Emits reload to systemd when needed

The current implementation enforce the reload
when a 'wants' target is created or deleted.
This should work well for system units.
However, for system units, this behaviour isn't
enought when more that a user is active because
only the user that installs the application will
be updated. For this reason, a paralelle mechanism
has to be defined.

Also note that systemd is henceforth required for
tools because wgtpkg-installer needs it now.

Change-Id: I4fc03a44dbc58c2374ea21dbf6b436f646d04e00
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/CMakeLists.txt
src/utils-systemd.c
src/utils-systemd.h
src/wgtpkg-unit.c