|
|
771b4bc |
From 00ed414ba351388c5cd7ad2dff10e34365e7bb36 Mon Sep 17 00:00:00 2001
|
|
|
771b4bc |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
771b4bc |
Date: Wed, 11 Apr 2012 21:58:33 +0200
|
|
|
771b4bc |
Subject: [PATCH] units: exclude gettys from isolate requests
|
|
|
771b4bc |
|
|
|
771b4bc |
gettys are nowadays mostly autospawned and hence usually subject to
|
|
|
771b4bc |
being shut down on isolate requests, since they are no dependency of any
|
|
|
771b4bc |
other unit. This is a bad idea if the user isolates between
|
|
|
771b4bc |
multi-user.graphical and graphical.target, hence exclude them from the
|
|
|
771b4bc |
isolation.
|
|
|
771b4bc |
|
|
|
771b4bc |
This has the effect that gettys no longer cleaned up when
|
|
|
771b4bc |
emergency.target is isolated, which might actualy be considered a
|
|
|
771b4bc |
feature, even though it is a change from previous behaviour...
|
|
|
771b4bc |
|
|
|
771b4bc |
Note that the one getty that really matters (the one on tty1) is still
|
|
|
771b4bc |
removed when isolating to emergency.target since it conflicts with
|
|
|
771b4bc |
emergency.service.
|
|
|
771b4bc |
(cherry picked from commit 4771148bb92ace55eaa6759a53d04a0f2de9b0d2)
|
|
|
771b4bc |
|
|
|
771b4bc |
Conflicts:
|
|
|
771b4bc |
|
|
|
771b4bc |
TODO
|
|
|
771b4bc |
---
|
|
|
771b4bc |
units/getty@.service.m4 | 1 +
|
|
|
771b4bc |
units/serial-getty@.service.m4 | 1 +
|
|
|
771b4bc |
2 files changed, 2 insertions(+)
|
|
|
771b4bc |
|
|
|
771b4bc |
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4
|
|
|
771b4bc |
index a02838d..6b931fb 100644
|
|
|
771b4bc |
--- a/units/getty@.service.m4
|
|
|
771b4bc |
+++ b/units/getty@.service.m4
|
|
|
771b4bc |
@@ -32,6 +32,7 @@ After=rc-local.service
|
|
|
771b4bc |
# sure that this is synchronized before getty.target, even though
|
|
|
771b4bc |
# getty.target didn't actually pull it in.
|
|
|
771b4bc |
Before=getty.target
|
|
|
771b4bc |
+IgnoreOnIsolate=yes
|
|
|
771b4bc |
|
|
|
771b4bc |
[Service]
|
|
|
771b4bc |
Environment=TERM=linux
|
|
|
771b4bc |
diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4
|
|
|
771b4bc |
index fc8b57b..d1d14d3 100644
|
|
|
771b4bc |
--- a/units/serial-getty@.service.m4
|
|
|
771b4bc |
+++ b/units/serial-getty@.service.m4
|
|
|
771b4bc |
@@ -32,6 +32,7 @@ After=rc-local.service
|
|
|
771b4bc |
# sure that this is synchronized before getty.target, even though
|
|
|
771b4bc |
# getty.target didn't actually pull it in.
|
|
|
771b4bc |
Before=getty.target
|
|
|
771b4bc |
+IgnoreOnIsolate=yes
|
|
|
771b4bc |
|
|
|
771b4bc |
[Service]
|
|
|
771b4bc |
Environment=TERM=vt100
|