chiark / gitweb /
nss-myhostname: remove duplicate LICENCE
[elogind.git] / units / serial-getty@.service.m4
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 m4_ifdef(`HAVE_SYSV_COMPAT',
15 After=rc-local.service
16 )m4_dnl
17
18 # If additional gettys are spawned during boot then we should make
19 # sure that this is synchronized before getty.target, even though
20 # getty.target didn't actually pull it in.
21 Before=getty.target
22 IgnoreOnIsolate=yes
23
24 [Service]
25 ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
26 Type=idle
27 Restart=always
28 RestartSec=0
29 UtmpIdentifier=%I
30 TTYPath=/dev/%I
31 TTYReset=yes
32 TTYVHangup=yes
33 KillMode=process
34 IgnoreSIGPIPE=no
35
36 # Some login implementations ignore SIGTERM, so we send SIGHUP
37 # instead, to ensure that login terminates cleanly.
38 KillSignal=SIGHUP