diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-06-23 23:00:02 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-06-23 23:00:02 +0200 |
commit | 1a673de307982e7f2abfb362d2927e8e5e16be55 (patch) | |
tree | ad9734ee09beda6fe7bb72aa49fce5b927377f0f /src/utils-systemd.h | |
parent | 474616e64fe081a59ebdb7ee6d650778f318212a (diff) |
Fix socket (de)activation at (de)install
When installing or deinstalling, it is needed to
issue a "systemctl (--user) restart sockets.target"
This patch implement it on user side.
To be improved.
Change-Id: I152eb6a1cf5df50b1fe3143837d6d42ee6619349
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/utils-systemd.h')
-rw-r--r-- | src/utils-systemd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils-systemd.h b/src/utils-systemd.h index b4c3b8c..7f67e3e 100644 --- a/src/utils-systemd.h +++ b/src/utils-systemd.h @@ -35,9 +35,11 @@ extern char *systemd_unit_dpath_by_name(int isuser, const char *name, int load); extern char *systemd_unit_dpath_by_pid(int isuser, unsigned pid); extern int systemd_unit_start_dpath(int isuser, const char *dpath); +extern int systemd_unit_restart_dpath(int isuser, const char *dpath); extern int systemd_unit_stop_dpath(int isuser, const char *dpath); extern int systemd_unit_start_name(int isuser, const char *name); +extern int systemd_unit_restart_name(int isuser, const char *name); extern int systemd_unit_stop_name(int isuser, const char *name); extern int systemd_unit_stop_pid(int isuser, unsigned pid); |