]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/getty@.service.m4
units: make Arch boot
[thirdparty/systemd.git] / units / getty@.service.m4
CommitLineData
5e6afdd3
LP
1# This file is part of systemd.
2#
5e6afdd3
LP
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.
5e6afdd3 7
e6aad08b 8m4_ifdef(`TARGET_FEDORA', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
cfe243e3 9m4_ifdef(`TARGET_SUSE', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
e6aad08b 10m4_ifdef(`TARGET_DEBIAN', `m4_define(`GETTY', `/sbin/getty 38400')')m4_dnl
419f3284 11m4_ifdef(`TARGET_GENTOO', `m4_define(`GETTY', `/sbin/agetty 38400')')m4_dnl
1ebdf2d8 12m4_ifdef(`TARGET_ARCH', `m4_define(`GETTY', `/sbin/agetty -8 38400')')m4_dnl
e6aad08b 13m4_dnl
5e6afdd3
LP
14[Unit]
15Description=Getty on %I
16Before=getty.target
17After=basic.target
835d81db 18Conflicts=shutdown.target
5e6afdd3
LP
19
20[Service]
cd6e402e 21Environment=TERM=linux
5e6afdd3 22ExecStart=GETTY %I
1e3fc654
LP
23Restart=restart-always
24RestartSec=0
cd6e402e 25KillMode=process-group