diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd-serialgetty')
-rw-r--r-- | meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service new file mode 100644 index 0000000000..865de3402d --- /dev/null +++ b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | |||
@@ -0,0 +1,36 @@ | |||
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 | ExecStart=-/sbin/agetty --keep-baud %I @BAUDRATE@ $TERM | ||
24 | Type=idle | ||
25 | Restart=always | ||
26 | RestartSec=0 | ||
27 | UtmpIdentifier=%I | ||
28 | TTYPath=/dev/%I | ||
29 | TTYReset=yes | ||
30 | TTYVHangup=yes | ||
31 | KillMode=process | ||
32 | IgnoreSIGPIPE=no | ||
33 | SendSIGHUP=yes | ||
34 | |||
35 | [Install] | ||
36 | WantedBy=getty.target | ||