serial-getty@.service.m4 revision fc6c7fe9becdd70ae6b671c396f2ad2db0b71cd7
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh# This file is part of systemd.
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh#
cad45ba11ec3572296361f53f5852ffb97a97fa3Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh# under the terms of the GNU Lesser General Public License as published by
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh# the Free Software Foundation; either version 2.1 of the License, or
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh# (at your option) any later version.
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh[Unit]
e2417e4143bb892e4599b01de7b031763421bb64Daniel J WalshDescription=Serial Getty on %I
e2417e4143bb892e4599b01de7b031763421bb64Daniel J WalshDocumentation=man:agetty(8) man:systemd-getty-generator(8)
03e22642617f360a6b55cb853bcf59604754ea5dKay SieversDocumentation=http://0pointer.de/blog/projects/serial-console.html
03e22642617f360a6b55cb853bcf59604754ea5dKay SieversBindsTo=dev-%i.device
e2417e4143bb892e4599b01de7b031763421bb64Daniel J WalshAfter=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walshm4_ifdef(`HAVE_SYSV_COMPAT',
e2417e4143bb892e4599b01de7b031763421bb64Daniel J WalshAfter=rc-local.service
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh)m4_dnl
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh
03e22642617f360a6b55cb853bcf59604754ea5dKay Sievers# If additional gettys are spawned during boot then we should make
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh# sure that this is synchronized before getty.target, even though
03e22642617f360a6b55cb853bcf59604754ea5dKay Sievers# getty.target didn't actually pull it in.
e2417e4143bb892e4599b01de7b031763421bb64Daniel J WalshBefore=getty.target
e2417e4143bb892e4599b01de7b031763421bb64Daniel J WalshIgnoreOnIsolate=yes
e2417e4143bb892e4599b01de7b031763421bb64Daniel J Walsh
718db96199eb307751264e4163555662c9a389faLennart Poettering[Service]
718db96199eb307751264e4163555662c9a389faLennart PoetteringExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
718db96199eb307751264e4163555662c9a389faLennart PoetteringType=idle
ffc227c9568eb0a12dc750761d1e5d68ea125aadLennart PoetteringRestart=always
ffc227c9568eb0a12dc750761d1e5d68ea125aadLennart PoetteringRestartSec=0
ffc227c9568eb0a12dc750761d1e5d68ea125aadLennart PoetteringUtmpIdentifier=%I
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart PoetteringTTYPath=/dev/%I
cad45ba11ec3572296361f53f5852ffb97a97fa3Lennart PoetteringTTYReset=yes
cad45ba11ec3572296361f53f5852ffb97a97fa3Lennart PoetteringTTYVHangup=yes
cad45ba11ec3572296361f53f5852ffb97a97fa3Lennart PoetteringKillMode=process
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart PoetteringIgnoreSIGPIPE=no
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart PoetteringSendSIGHUP=yes
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart Poettering
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart Poettering[Install]
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart PoetteringWantedBy=getty.target
4f4f70361a64957c45a2d8f40bfb04c77b454697Lennart Poettering