units: enable utmp for serial gettys too

This commit is contained in:
Lennart Poettering 2010-10-08 18:22:44 +02:00
parent c8f26f42e2
commit c84ed68f30
2 changed files with 7 additions and 8 deletions

View File

@ -22,10 +22,9 @@ m4_ifdef(`TARGET_ARCH',
After=rc-local.service
)m4_dnl
# If additional gettys are spawned during boot (possibly by
# systemd-auto-console-getty) then we should make sure that this is
# synchronized before getty.target, even though getty.target didn't
# actually pull it in.
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
[Service]

View File

@ -16,10 +16,9 @@ m4_ifdef(`TARGET_ARCH',
After=rc-local.service
)m4_dnl
# If additional gettys are spawned during boot (possibly by
# systemd-auto-console-getty) then we should make sure that this is
# synchronized before getty.target, even though getty.target didn't
# actually pull it in.
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
[Service]
@ -30,6 +29,7 @@ ExecStartPre=-/sbin/securetty %I
ExecStart=-/sbin/agetty -s %I 115200,38400,9600
Restart=always
RestartSec=0
UtmpIdentifier=%I
KillMode=process-group
# Some login implementations ignore SIGTERM, so we send SIGHUP