chiark / gitweb /
notify: send STOPPING=1 from our daemons
[elogind.git] / src / bus-proxyd / bus-proxyd.c
index d8d989b9b080add82f57434c603a87f532ba35bf..d35d7f63b2f54a49274617939e9c1cc756cb4d1b 100644 (file)
@@ -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);