summaryrefslogtreecommitdiff
path: root/src/bus-proxyd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-21 17:19:28 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-21 17:24:21 +0200
commitaf4ec4309e8f82aad87a8d574785c12f8763d5f8 (patch)
treea592a4d9bae7af0d2bfccd2206c0be32e0712c7b /src/bus-proxyd
parent308d72dc1e2106f94ae637e2ea510e8d466d2af1 (diff)
notify: send STOPPING=1 from our daemons
Diffstat (limited to 'src/bus-proxyd')
-rw-r--r--src/bus-proxyd/bus-proxyd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c
index d8d989b9b0..d35d7f63b2 100644
--- a/src/bus-proxyd/bus-proxyd.c
+++ b/src/bus-proxyd/bus-proxyd.c
@@ -239,7 +239,7 @@ static int rename_service(sd_bus *a, sd_bus *b) {
pid, p,
uid, name,
a->unique_name);
- ;
+
return 0;
}
@@ -1474,6 +1474,10 @@ int main(int argc, char *argv[]) {
}
finish:
+ sd_notify(false,
+ "STOPPING=1\n"
+ "STATUS=Shutting down.");
+
policy_free(&policy);
strv_free(arg_configuration);
free(arg_address);