summaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-13 00:27:27 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-13 00:27:27 +0200
commitba3e67a78564bf25c5af97ffe2e1a122b193a9cb (patch)
tree8d47f6a421da2660ac090dd526c387b5fc90e744 /src/path.c
parentunits: rely only on isolate to remove running services when entering rescue/e... (diff)
downloadsystemd-ba3e67a78564bf25c5af97ffe2e1a122b193a9cb.tar.xz
systemd-ba3e67a78564bf25c5af97ffe2e1a122b193a9cb.zip
socket: when the socket is supposed to stop, don't accept any connections anymore
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c
index 27c4544729..2ae6e569ce 100644
--- a/src/path.c
+++ b/src/path.c
@@ -304,6 +304,10 @@ static void path_enter_running(Path *p) {
assert(p);
dbus_error_init(&error);
+ /* Don't start job if we are supposed to go down */
+ if (p->meta.job && p->meta.job->type == JOB_STOP)
+ return;
+
if ((r = manager_add_job(p->meta.manager, JOB_START, p->unit, JOB_REPLACE, true, &error, NULL)) < 0)
goto fail;