summaryrefslogtreecommitdiff
path: root/units/getty@.service.m4
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-24 14:28:00 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-24 14:42:24 +0200
commitf2b6878955b1f77ea1fa87b502b13d5dbefc57f6 (patch)
tree3fdf72d167a9e64ac16aaac52eaffa57c3cb9d13 /units/getty@.service.m4
parent8d8e945624a0080073d94941f3032b8fa3b3aa15 (diff)
service: introduce Type=idle and use it for gettys
Type=idle is much like Type=simple, however between the fork() and the exec() in the child we wait until PID 1 informs us that no jobs are left. This is mostly a cosmetic fix to make gettys appear only after all boot output is finished and complete. Note that this does not impact the normal job logic as we do not delay the completion of any jobs. We just delay the invocation of the actual binary, and only for services that otherwise would be of Type=simple.
Diffstat (limited to 'units/getty@.service.m4')
-rw-r--r--units/getty@.service.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4
index 17c76f5b31..431a3dd722 100644
--- a/units/getty@.service.m4
+++ b/units/getty@.service.m4
@@ -41,6 +41,7 @@ ConditionPathExists=/dev/tty0
[Service]
Environment=TERM=linux
ExecStart=-/sbin/agetty %I 38400
+Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I