chiark / gitweb /
unit: add ConditionACPower=
[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(`TARGET_FEDORA',
15 After=rc-local.service
16 )m4_dnl
17 m4_ifdef(`TARGET_DEBIAN',
18 After=rc.local.service
19 )m4_dnl
20 m4_ifdef(`TARGET_ARCH',
21 After=rc-local.service
22 )m4_dnl
23 m4_ifdef(`TARGET_FRUGALWARE',
24 After=local.service
25 )m4_dnl
26 m4_ifdef(`TARGET_ALTLINUX',
27 After=rc-local.service
28 )m4_dnl
29 m4_ifdef(`TARGET_MANDRIVA',
30 After=rc-local.service
31 )m4_dnl
32 m4_ifdef(`TARGET_MAGEIA',
33 After=rc-local.service
34 )m4_dnl
35
36 # If additional gettys are spawned during boot then we should make
37 # sure that this is synchronized before getty.target, even though
38 # getty.target didn't actually pull it in.
39 Before=getty.target
40 IgnoreOnIsolate=yes
41
42 [Service]
43 ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
44 Type=idle
45 Restart=always
46 RestartSec=0
47 UtmpIdentifier=%I
48 TTYPath=/dev/%I
49 TTYReset=yes
50 TTYVHangup=yes
51 KillMode=process
52 IgnoreSIGPIPE=no
53
54 # Some login implementations ignore SIGTERM, so we send SIGHUP
55 # instead, to ensure that login terminates cleanly.
56 KillSignal=SIGHUP