chiark / gitweb /
units: exclude gettys from isolate requests
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Apr 2012 19:58:33 +0000 (21:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Apr 2012 20:37:48 +0000 (22:37 +0200)
gettys are nowadays mostly autospawned and hence usually subject to
being shut down on isolate requests, since they are no dependency of any
other unit. This is a bad idea if the user isolates between
multi-user.graphical and graphical.target, hence exclude them from the
isolation.

This has the effect that gettys no longer cleaned up when
emergency.target is isolated, which might actualy be considered a
feature, even though it is a change from previous behaviour...

Note that the one getty that really matters (the one on tty1) is still
removed when isolating to emergency.target since it conflicts with
emergency.service.

TODO
units/getty@.service.m4
units/serial-getty@.service.m4

diff --git a/TODO b/TODO
index d94aba5639f132344d8643a16bd376afa5f212ae..3cb6dbc0e49d38f73966eb64ef7204501287d9df 100644 (file)
--- a/TODO
+++ b/TODO
@@ -17,6 +17,8 @@ Bugfixes:
 
 Features:
 
+* place start-pre/start-post/... scripts in sub cgrouprs
+
 * Make RuntimeWatchdogUSec= property writable
 
 * start polkit agent in systemctl, similar to the password agent, to allow
@@ -100,8 +102,6 @@ Features:
 
 * add option to sockets to avoid activation. Instead just drop packets/connections, see http://cyberelk.net/tim/2012/02/15/portreserve-systemd-solution/
 
-* isolate for getty is still broken, due to logind
-
 * default unix qlen is too small (10). bump sysctl? add sockopt?
 
 * support units generated by a generator and placed in /run/systemd/system/; the directory is
index a02838d7850181695cf4f7c287f27b4916a55df1..6b931fb871a001d89a3f36e9659a3a9369a7469d 100644 (file)
@@ -32,6 +32,7 @@ After=rc-local.service
 # sure that this is synchronized before getty.target, even though
 # getty.target didn't actually pull it in.
 Before=getty.target
+IgnoreOnIsolate=yes
 
 [Service]
 Environment=TERM=linux
index fc8b57b93e8f96de073f55ef4ee7bd810c80a238..d1d14d35e6596bbe4991df8fa33eda97f4ec1d46 100644 (file)
@@ -32,6 +32,7 @@ After=rc-local.service
 # sure that this is synchronized before getty.target, even though
 # getty.target didn't actually pull it in.
 Before=getty.target
+IgnoreOnIsolate=yes
 
 [Service]
 Environment=TERM=vt100