diff options
author | Simon Rettberg | 2018-09-04 13:27:20 +0200 |
---|---|---|
committer | Your Name | 2018-09-04 13:27:20 +0200 |
commit | 29317f9074b2899b2d8ae4dd6b07a2dde6b210c4 (patch) | |
tree | ee0a11ac5645cee464f84ff0ab76b2cd7c4cb8ca /core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service | |
parent | Get rid of fractional sleep calls (diff) | |
download | mltk-29317f9074b2899b2d8ae4dd6b07a2dde6b210c4.tar.gz mltk-29317f9074b2899b2d8ae4dd6b07a2dde6b210c4.tar.xz mltk-29317f9074b2899b2d8ae4dd6b07a2dde6b210c4.zip |
[systemd] Fix syslog, fix systemd user session pam config
Diffstat (limited to 'core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service')
-rw-r--r-- | core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service b/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service index 5f289500..fb7b6e78 100644 --- a/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service +++ b/core/modules/systemd/data/usr/lib/systemd/system/serial-getty@.service @@ -19,18 +19,26 @@ After=rc-local.service Before=getty.target IgnoreOnIsolate=yes +# IgnoreOnIsolate causes issues with sulogin, if someone isolates +# rescue.target or starts rescue.service from multi-user.target or +# graphical.target. +Conflicts=rescue.service +Before=rescue.service + [Service] -ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102 +# 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' --keep-baud 115200,38400,9600 %I $TERM Type=idle Restart=always -RestartSec=0 UtmpIdentifier=%I TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes KillMode=process IgnoreSIGPIPE=no +SendSIGHUP=yes -# Some login implementations ignore SIGTERM, so we send SIGHUP -# instead, to ensure that login terminates cleanly. -KillSignal=SIGHUP +[Install] +WantedBy=getty.target |