From f2b6878955b1f77ea1fa87b502b13d5dbefc57f6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Apr 2012 14:28:00 +0200 Subject: 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. --- units/console-shell.service.m4.in | 1 + 1 file changed, 1 insertion(+) (limited to 'units/console-shell.service.m4.in') diff --git a/units/console-shell.service.m4.in b/units/console-shell.service.m4.in index 7d0da9b860..4f795e16ac 100644 --- a/units/console-shell.service.m4.in +++ b/units/console-shell.service.m4.in @@ -33,6 +33,7 @@ Environment=HOME=/root WorkingDirectory=/root ExecStart=-/sbin/sulogin ExecStopPost=-@SYSTEMCTL@ poweroff +Type=idle StandardInput=tty-force StandardOutput=inherit StandardError=inherit -- cgit v1.2.3-54-g00ecf