diff options
Diffstat (limited to 'meta-oe/recipes-core/systemd/systemd-serialgetty/serial-getty@.service')
| -rw-r--r-- | meta-oe/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd-serialgetty/serial-getty@.service b/meta-oe/recipes-core/systemd/systemd-serialgetty/serial-getty@.service new file mode 100644 index 0000000000..daf0dac723 --- /dev/null +++ b/meta-oe/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | |||
| @@ -0,0 +1,28 @@ | |||
| 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 General Public License as published by | ||
| 5 | # the Free Software Foundation; either version 2 of the License, or | ||
| 6 | # (at your option) any later version. | ||
| 7 | |||
| 8 | [Unit] | ||
| 9 | Description=Serial Getty on %I | ||
| 10 | BindTo=dev-%i.device | ||
| 11 | After=dev-%i.device systemd-user-sessions.service | ||
| 12 | |||
| 13 | # If additional gettys are spawned during boot then we should make | ||
| 14 | # sure that this is synchronized before getty.target, even though | ||
| 15 | # getty.target didn't actually pull it in. | ||
| 16 | Before=getty.target | ||
| 17 | |||
| 18 | [Service] | ||
| 19 | Environment=TERM=vt100 | ||
| 20 | ExecStart=-/sbin/getty @BAUDRATE@ %I | ||
| 21 | Restart=always | ||
| 22 | RestartSec=0 | ||
| 23 | UtmpIdentifier=%I | ||
| 24 | KillMode=process | ||
| 25 | |||
| 26 | # Some login implementations ignore SIGTERM, so we send SIGHUP | ||
| 27 | # instead, to ensure that login terminates cleanly. | ||
| 28 | KillSignal=SIGHUP | ||
