diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-21 17:19:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-21 17:24:21 +0200 |
commit | af4ec4309e8f82aad87a8d574785c12f8763d5f8 (patch) | |
tree | a592a4d9bae7af0d2bfccd2206c0be32e0712c7b /src/nspawn | |
parent | 308d72dc1e2106f94ae637e2ea510e8d466d2af1 (diff) |
notify: send STOPPING=1 from our daemons
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index d01da45930..2c718557ee 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -3071,7 +3071,9 @@ int main(int argc, char *argv[]) { goto finish; } - sd_notify(0, "READY=1"); + sd_notify(false, + "READY=1\n" + "STATUS=Container running."); assert_se(sigemptyset(&mask) == 0); assert_se(sigemptyset(&mask_chld) == 0); @@ -3504,6 +3506,10 @@ int main(int argc, char *argv[]) { } finish: + sd_notify(false, + "STOPPING=1\n" + "STATUS=Terminating..."); + loop_remove(loop_nr, &image_fd); if (pid > 0) |