|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 4cb40606785c30710bcf39bba33167bee66ad0bd Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Dave Reisner <dreisner@archlinux.org>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Mon, 8 Sep 2014 09:27:41 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] machined: remove redundant sd_notify
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
We already call this on via bus_event_loop_with_idle on exit. This
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
makes machined consistent with other similar daemons: localed,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
hostnamed, timedated.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/machine/machined.c | 4 ----
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 4 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/machine/machined.c b/src/machine/machined.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index f9d180d24a..aac670ba78 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/machine/machined.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/machine/machined.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -349,10 +349,6 @@ int main(int argc, char *argv[]) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
log_debug("systemd-machined stopped as pid "PID_FMT, getpid());
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
finish:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- sd_notify(false,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- "STOPPING=1\n"
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- "STATUS=Shutting down...");
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (m)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
manager_free(m);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|