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