summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-16 14:56:59 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-17 09:13:35 +0100
commit44c5d0442ed5e572816d82bb67009bb7a8957cba (patch)
tree8c5d123565b25b0a2aae00872bff10463183e243 /src
parentportabled: define main through macro (diff)
downloadsystemd-44c5d0442ed5e572816d82bb67009bb7a8957cba.tar.xz
systemd-44c5d0442ed5e572816d82bb67009bb7a8957cba.zip
portabled: add missing STOPPING=1 notification
Diffstat (limited to 'src')
-rw-r--r--src/portable/portabled.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/portable/portabled.c b/src/portable/portabled.c
index e5efac51d0..a853257bc0 100644
--- a/src/portable/portabled.c
+++ b/src/portable/portabled.c
@@ -154,6 +154,9 @@ static int run(int argc, char *argv[]) {
r = manager_run(m);
+ (void) sd_notify(false,
+ "STOPPING=1\n"
+ "STATUS=Shutting down...");
log_debug("systemd-portabled stopped as pid " PID_FMT, getpid_cached());
return r;
}