chiark / gitweb /
machined: remove redundant sd_notify
authorDave Reisner <dreisner@archlinux.org>
Mon, 8 Sep 2014 13:27:41 +0000 (09:27 -0400)
committerDave Reisner <dreisner@archlinux.org>
Mon, 8 Sep 2014 13:29:36 +0000 (09:29 -0400)
We already call this on via bus_event_loop_with_idle on exit. This
makes machined consistent with other similar daemons: localed,
hostnamed, timedated.

src/machine/machined.c

index f9d180d24a74bc4e3cbf951b766f5ecf4cd1bdae..aac670ba78ff6f47a06bfb91aaf843bae493d7fc 100644 (file)
@@ -349,10 +349,6 @@ int main(int argc, char *argv[]) {
         log_debug("systemd-machined stopped as pid "PID_FMT, getpid());
 
 finish:
         log_debug("systemd-machined stopped as pid "PID_FMT, getpid());
 
 finish:
-        sd_notify(false,
-                  "STOPPING=1\n"
-                  "STATUS=Shutting down...");
-
         if (m)
                 manager_free(m);
 
         if (m)
                 manager_free(m);