]> err.no Git - systemd/commit
service: introduce Type=idle and use it for gettys
authorLennart Poettering <lennart@poettering.net>
Tue, 24 Apr 2012 12:28:00 +0000 (14:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Apr 2012 12:42:24 +0000 (14:42 +0200)
commitf2b6878955b1f77ea1fa87b502b13d5dbefc57f6
tree3fdf72d167a9e64ac16aaac52eaffa57c3cb9d13
parent8d8e945624a0080073d94941f3032b8fa3b3aa15
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.
16 files changed:
src/core/execute.c
src/core/execute.h
src/core/manager.c
src/core/manager.h
src/core/mount.c
src/core/service.c
src/core/service.h
src/core/socket.c
src/core/swap.c
src/core/transaction.c
units/console-getty.service.m4.in
units/console-shell.service.m4.in
units/emergency.service.in
units/getty@.service.m4
units/rescue.service.m4.in
units/serial-getty@.service.m4