diff options
author | Дамјан Георгиевски <gdamjan@gmail.com> | 2023-02-01 17:13:45 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-02-21 23:59:04 +0100 |
commit | 37fe75a2e64690055e8cd45ad7420419874d2ea8 (patch) | |
tree | 25a3df20f7eb1fa4ca17c80394af7eb96c0e5e49 /src/socket-proxy | |
parent | Merge pull request #26349 from yuwata/safe-fork-rearrange-stdio (diff) | |
download | systemd-37fe75a2e64690055e8cd45ad7420419874d2ea8.tar.xz systemd-37fe75a2e64690055e8cd45ad7420419874d2ea8.zip |
socket-proxyd: support Type=notify
update examples in the man page too
Diffstat (limited to 'src/socket-proxy')
-rw-r--r-- | src/socket-proxy/socket-proxyd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c index 821049e667..f336fbd55e 100644 --- a/src/socket-proxy/socket-proxyd.c +++ b/src/socket-proxy/socket-proxyd.c @@ -15,6 +15,7 @@ #include "alloc-util.h" #include "build.h" +#include "daemon-util.h" #include "errno-util.h" #include "fd-util.h" #include "log.h" @@ -672,6 +673,7 @@ static int parse_argv(int argc, char *argv[]) { static int run(int argc, char *argv[]) { _cleanup_(context_clear) Context context = {}; + _unused_ _cleanup_(notify_on_cleanup) const char *notify_stop = NULL; int r, n, fd; log_parse_environment(); @@ -709,6 +711,7 @@ static int run(int argc, char *argv[]) { return r; } + notify_stop = notify_start(NOTIFY_READY, NOTIFY_STOPPING); r = sd_event_loop(context.event); if (r < 0) return log_error_errno(r, "Failed to run event loop: %m"); |