Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # This file is part of systemd. |
| 2 | # |
| 3 | # systemd is free software; you can redistribute it and/or modify it |
| 4 | # under the terms of the GNU Lesser General Public License as published by |
| 5 | # the Free Software Foundation; either version 2.1 of the License, or |
| 6 | # (at your option) any later version. |
| 7 | |
| 8 | [Unit] |
| 9 | Description=Serial Getty on %I |
| 10 | Documentation=man:agetty(8) man:systemd-getty-generator(8) |
| 11 | Documentation=http://0pointer.de/blog/projects/serial-console.html |
| 12 | BindsTo=dev-%i.device |
| 13 | After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service |
| 14 | After=rc-local.service |
| 15 | |
| 16 | # If additional gettys are spawned during boot then we should make |
| 17 | # sure that this is synchronized before getty.target, even though |
| 18 | # getty.target didn't actually pull it in. |
| 19 | Before=getty.target |
| 20 | IgnoreOnIsolate=yes |
| 21 | |
| 22 | [Service] |
| 23 | Environment="TERM=xterm" |
| 24 | ExecStart=-/sbin/agetty -8 -L --keep-baud %I @BAUDRATE@ $TERM |
| 25 | Type=idle |
| 26 | Restart=always |
| 27 | RestartSec=0 |
| 28 | UtmpIdentifier=%I |
| 29 | TTYPath=/dev/%I |
| 30 | TTYReset=yes |
| 31 | TTYVHangup=yes |
| 32 | KillMode=process |
| 33 | IgnoreSIGPIPE=no |
| 34 | SendSIGHUP=yes |
| 35 | |
| 36 | [Install] |
| 37 | WantedBy=getty.target |