xref: /openbmc/openbmc/meta-google/recipes-phosphor/console/obmc-console/serial-to-bmc@.service (revision bec4ebc22c43c1ff5c3fddb820d44a88bd3aebf0)
1[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
23