Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 1 | # This file is part of systemd. |
| 2 | # |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 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. |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 7 | |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 8 | [Unit] |
| 9 | Description=Getty on %I |
Lennart Poettering | b81884e | 2010-10-28 23:18:47 +0200 | [diff] [blame] | 10 | BindTo=dev-%i.device |
Lennart Poettering | 1e7ba84 | 2010-11-16 01:25:19 +0100 | [diff] [blame] | 11 | After=dev-%i.device systemd-user-sessions.service |
Lennart Poettering | af65a09 | 2010-07-03 19:53:37 +0200 | [diff] [blame] | 12 | m4_ifdef(`TARGET_FEDORA', |
| 13 | After=rc-local.service |
| 14 | )m4_dnl |
| 15 | m4_ifdef(`TARGET_ARCH', |
| 16 | After=rc-local.service |
| 17 | )m4_dnl |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 18 | |
Lennart Poettering | c84ed68 | 2010-10-08 18:22:44 +0200 | [diff] [blame] | 19 | # If additional gettys are spawned during boot then we should make |
| 20 | # sure that this is synchronized before getty.target, even though |
| 21 | # getty.target didn't actually pull it in. |
Lennart Poettering | 9f24a81 | 2010-08-18 23:10:27 +0200 | [diff] [blame] | 22 | Before=getty.target |
| 23 | |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 24 | [Service] |
Lennart Poettering | 180f90c | 2010-11-16 01:54:07 +0100 | [diff] [blame^] | 25 | Environment=TERM=linux |
Lennart Poettering | 92ab323 | 2010-11-14 23:26:53 +0100 | [diff] [blame] | 26 | ExecStart=-/sbin/agetty %I 38400 |
Lennart Poettering | 525ee6f | 2010-10-05 20:30:44 +0200 | [diff] [blame] | 27 | Restart=always |
Lennart Poettering | 1e3fc65 | 2010-05-18 03:08:18 +0200 | [diff] [blame] | 28 | RestartSec=0 |
Lennart Poettering | 169c1bd | 2010-10-08 16:06:23 +0200 | [diff] [blame] | 29 | UtmpIdentifier=%I |
Lennart Poettering | cd6e402 | 2010-06-01 19:49:13 +0200 | [diff] [blame] | 30 | KillMode=process-group |
Lennart Poettering | 30609d9 | 2010-08-05 20:29:11 +0200 | [diff] [blame] | 31 | |
| 32 | # Some login implementations ignore SIGTERM, so we send SIGHUP |
| 33 | # instead, to ensure that login terminates cleanly. |
Kay Sievers | 7d49c54 | 2010-08-04 18:56:35 +0200 | [diff] [blame] | 34 | KillSignal=SIGHUP |
Lennart Poettering | 3d88bf6 | 2010-06-18 21:56:21 +0200 | [diff] [blame] | 35 | |
| 36 | [Install] |
Lennart Poettering | 07405e9 | 2010-07-07 22:29:41 +0200 | [diff] [blame] | 37 | Alias=getty.target.wants/getty@tty1.service getty.target.wants/getty@tty2.service getty.target.wants/getty@tty3.service getty.target.wants/getty@tty4.service getty.target.wants/getty@tty5.service getty.target.wants/getty@tty6.service |