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 | e6aad08 | 2010-05-17 02:17:47 +0200 | [diff] [blame] | 8 | m4_ifdef(`TARGET_FEDORA', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl |
Kay Sievers | cfe243e | 2010-05-20 17:55:42 +0200 | [diff] [blame] | 9 | m4_ifdef(`TARGET_SUSE', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl |
Lennart Poettering | e6aad08 | 2010-05-17 02:17:47 +0200 | [diff] [blame] | 10 | m4_ifdef(`TARGET_DEBIAN', `m4_define(`GETTY', `/sbin/getty 38400')')m4_dnl |
Marc-Antoine Perennou | 419f328 | 2010-05-17 11:49:58 +0200 | [diff] [blame] | 11 | m4_ifdef(`TARGET_GENTOO', `m4_define(`GETTY', `/sbin/agetty 38400')')m4_dnl |
Tom Gundersen | 1ebdf2d | 2010-06-16 13:50:55 +0200 | [diff] [blame] | 12 | m4_ifdef(`TARGET_ARCH', `m4_define(`GETTY', `/sbin/agetty -8 38400')')m4_dnl |
Lennart Poettering | e6aad08 | 2010-05-17 02:17:47 +0200 | [diff] [blame] | 13 | m4_dnl |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 14 | [Unit] |
| 15 | Description=Getty on %I |
| 16 | Before=getty.target |
Lennart Poettering | af65a09 | 2010-07-03 19:53:37 +0200 | [diff] [blame] | 17 | m4_ifdef(`TARGET_FEDORA', |
| 18 | After=rc-local.service |
| 19 | )m4_dnl |
| 20 | m4_ifdef(`TARGET_ARCH', |
| 21 | After=rc-local.service |
| 22 | )m4_dnl |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 23 | |
| 24 | [Service] |
Lennart Poettering | cd6e402 | 2010-06-01 19:49:13 +0200 | [diff] [blame] | 25 | Environment=TERM=linux |
Lennart Poettering | 5e6afdd | 2010-05-17 01:34:36 +0200 | [diff] [blame] | 26 | ExecStart=GETTY %I |
Lennart Poettering | 1e3fc65 | 2010-05-18 03:08:18 +0200 | [diff] [blame] | 27 | Restart=restart-always |
| 28 | RestartSec=0 |
Lennart Poettering | cd6e402 | 2010-06-01 19:49:13 +0200 | [diff] [blame] | 29 | KillMode=process-group |
Lennart Poettering | 30609d9 | 2010-08-05 20:29:11 +0200 | [diff] [blame^] | 30 | |
| 31 | # Some login implementations ignore SIGTERM, so we send SIGHUP |
| 32 | # instead, to ensure that login terminates cleanly. |
Kay Sievers | 7d49c54 | 2010-08-04 18:56:35 +0200 | [diff] [blame] | 33 | KillSignal=SIGHUP |
Lennart Poettering | 3d88bf6 | 2010-06-18 21:56:21 +0200 | [diff] [blame] | 34 | |
| 35 | [Install] |
Lennart Poettering | 07405e9 | 2010-07-07 22:29:41 +0200 | [diff] [blame] | 36 | 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 |