summaryrefslogtreecommitdiffstats
path: root/src/utils-systemd.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-15 11:49:29 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-17 13:01:40 +0100
commitfb0f81a1d8b5369842269fa1bdb9ad8d52882491 (patch)
treece78a61d1c9fdb46be72c6f0e0657e4a6c0abbdd /src/utils-systemd.h
parent2a8b46d16ea5d0c99831e95b47cab037f220f7af (diff)
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>
Diffstat (limited to 'src/utils-systemd.h')
-rw-r--r--src/utils-systemd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils-systemd.h b/src/utils-systemd.h
index d149309..30f9522 100644
--- a/src/utils-systemd.h
+++ b/src/utils-systemd.h
@@ -21,4 +21,5 @@
extern int systemd_get_unit_path(char *path, size_t pathlen, int isuser, const char *unit, const char *uext);
extern int systemd_get_wants_path(char *path, size_t pathlen, int isuser, const char *wanter, const char *unit, const char *uext);
extern int systemd_get_wants_target(char *path, size_t pathlen, const char *unit, const char *uext);
+extern int systemd_daemon_reload(int isuser);