Brandon Kim | dc43764 | 2022-04-13 10:00:14 -0700 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=BMC Serial Getty on %I |
| 3 | BindsTo=dev-%i.device |
| 4 | After=dev-%i.device systemd-user-sessions.service |
| 5 | After=rc-local.service |
| 6 | Before=getty.target |
| 7 | IgnoreOnIsolate=yes |
| 8 | |
| 9 | Conflicts=serial-to-host@%i.service |
| 10 | StartLimitIntervalSec=0 |
| 11 | |
| 12 | [Service] |
| 13 | Type=simple |
| 14 | Restart=no |
| 15 | RestartSec=0 |
| 16 | ExecStart=-/sbin/agetty -8 -n -o '-f root' -i -N -R -L %I 115200 xterm |
| 17 | ExecStopPost=-/bin/sh -c 'systemctl start --no-block serial-to-host@%i' |
| 18 | UtmpIdentifier=%I |
| 19 | TTYPath=/dev/%I |
| 20 | KillMode=process |
| 21 | IgnoreSIGPIPE=no |
| 22 | SendSIGHUP=yes |