diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-16 11:55:36 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-19 10:24:43 +0900 |
commit | 059cc610b735134afa68a13feddc131c7bf6498e (patch) | |
tree | b510cd827bd39fdef3d4f13a7231de4831f07a85 /units/console-getty.service.in | |
parent | 6b1aac3ccf3a554011a1a6030672fa5b5c4b4f77 (diff) | |
download | systemd-059cc610b735134afa68a13feddc131c7bf6498e.tar.gz |
meson: use jinja2 for unit templates
We don't need two (and half) templating systems anymore, yay!
I'm keeping the changes minimal, to make the diff manageable. Some enhancements
due to a better templating system might be possible in the future.
For handling of '## ' — see the next commit.
Diffstat (limited to 'units/console-getty.service.in')
-rw-r--r-- | units/console-getty.service.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/units/console-getty.service.in b/units/console-getty.service.in new file mode 100644 index 0000000000..bb67541dce --- /dev/null +++ b/units/console-getty.service.in @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Console Getty +Documentation=man:agetty(8) man:systemd-getty-generator(8) +After=systemd-user-sessions.service plymouth-quit-wait.service +{% if HAVE_SYSV_COMPAT %} +After=rc-local.service getty-pre.target +{% endif %} +Before=getty.target + +# OCI containers may be run without a console +ConditionPathExists=/dev/console + +[Service] +# The '-o' option value tells agetty to replace 'login' arguments with an +# option to preserve environment (-p), followed by '--' for safety, and then +# the entered username. +ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud console 115200,38400,9600 $TERM +Type=idle +Restart=always +UtmpIdentifier=cons +TTYPath=/dev/console +TTYReset=yes +TTYVHangup=yes +{% if not ENABLE_LOGIND %} +KillMode=process +{% endif %} +IgnoreSIGPIPE=no +SendSIGHUP=yes + +[Install] +WantedBy=getty.target |