serial-getty@.service.m4 revision 60b4f27794f3f3b5bd1c67b42d09eb4c21838aed
286N/A# This file is part of systemd.
286N/A#
286N/A# systemd is free software; you can redistribute it and/or modify it
286N/A# under the terms of the GNU General Public License as published by
286N/A# the Free Software Foundation; either version 2 of the License, or
286N/A# (at your option) any later version.
286N/A
286N/A[Unit]
286N/ADescription=Serial Getty on %I
286N/ABindTo=dev-%i.device
286N/AAfter=dev-%i.device systemd-user-sessions.service
286N/Am4_ifdef(`TARGET_FEDORA',
286N/AAfter=rc-local.service
286N/A)m4_dnl
286N/Am4_ifdef(`TARGET_ARCH',
286N/AAfter=rc-local.service
286N/A)m4_dnl
286N/A
286N/A# If additional gettys are spawned during boot then we should make
286N/A# sure that this is synchronized before getty.target, even though
286N/A# getty.target didn't actually pull it in.
286N/ABefore=getty.target
286N/A
286N/A[Service]
286N/AEnvironment=TERM=vt100
286N/Am4_ifdef(`TARGET_FEDORA',
286N/AExecStartPre=-/sbin/securetty %I
286N/A)m4_dnl
286N/AExecStart=-/sbin/agetty -s %I 115200,38400,9600
286N/ARestart=always
286N/ARestartSec=0
286N/AUtmpIdentifier=%I
286N/AKillMode=process-group
286N/A
286N/A# Some login implementations ignore SIGTERM, so we send SIGHUP
286N/A# instead, to ensure that login terminates cleanly.
286N/AKillSignal=SIGHUP
286N/A