summaryrefslogtreecommitdiffstats
path: root/units/getty@.service.m4 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* install: introduce new DefaultInstance= field for [Install] sectionsLennart Poettering2014-06-171-0/+1
| | | | | | | | | | | | The DefaultInstance= name is used when enabling template units when only specifying the template name, but no instance. Add DefaultInstance=tty1 to getty@.service, so that when the template itself is enabled an instance for tty1 is created. This is useful so that we "systemctl preset-all" can work properly, because we can operate on getty@.service after finding it, and the right instance is created.
* units: when spawning a getty configure TERM explicitlyLennart Poettering2013-12-181-1/+1
| | | | | This way we can make use of our logic to automatically determine an appropriate TERM for a specific tty.
* core: optionally send SIGHUP in addition to the configured kill signalLennart Poettering2013-07-301-4/+1
| | | | This is useful to fake session ends for processes like shells.
* units: do not special-case getty@tty1.service installationZbigniew Jędrzejewski-Szmek2013-07-131-3/+3
| | | | | | Since a long while we can use "systemctl enable getty@tty1.service" which does the right thing, so there's no need to abuse Alias= for installation.
* units: cleanup agetty command lineKarel Zak2013-06-041-1/+1
| | | | | | | | | * baud rate is optional and unnecessary for virtual terminals * term type is optional (default is 'linux' for virtual terminals and 'vt102' for serial lines) * long options are more user-friendly ... all this is supported since util-linux v2.20 (Aug 2011).
* units: drop distro specific stuff from unitsLennart Poettering2013-01-041-19/+1
| | | | | Since rc-local is now enabled via the SysV compatibility we should only refer to it based on that too.
* unit: link up getty configuration from man page and unit filesLennart Poettering2012-11-201-1/+2
|
* units: agetty overrides TERMMichal Schmidt2012-10-291-2/+1
| | | | | | | | Environment=TERM=... has no effect on agetty who sets it by itself. To really set TERM to a specified value, it has to be given on the command line. https://bugzilla.redhat.com/show_bug.cgi?id=870622
* units: teach m4 scripts in units/ about Debian's rc.localRamkumar Ramachandra2012-10-281-0/+3
| | | | | This makes the behaviour wrt. to rc[-.]local consistent between various distributions supporting it.
* units: avoid redundant VT clearing by agettyMichal Schmidt2012-06-061-1/+2
| | | | | | | | | TTYVTDisallocate=yes already clears the VT. agetty does not need to do it again. Run it with --noclear. Felix Miata found the double clearing confusing in this bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=828007 Add a comment explaining what clears the VT.
* units: introduce new Documentation= field and make use of it everywhereLennart Poettering2012-05-211-0/+1
| | | | | | | | | | This should help making the boot process a bit easier to explore and understand for the administrator. The simple idea is that "systemctl status" now shows a link to documentation alongside the other status and decriptionary information of a service. This patch adds the necessary fields to all our shipped units if we have proper documentation for them.
* service: introduce Type=idle and use it for gettysLennart Poettering2012-04-241-0/+1
| | | | | | | | | | | | | Type=idle is much like Type=simple, however between the fork() and the exec() in the child we wait until PID 1 informs us that no jobs are left. This is mostly a cosmetic fix to make gettys appear only after all boot output is finished and complete. Note that this does not impact the normal job logic as we do not delay the completion of any jobs. We just delay the invocation of the actual binary, and only for services that otherwise would be of Type=simple.
* getty: skip VC gettys if the VC subsystem is not availableLennart Poettering2012-04-121-0/+5
|
* getty: VC devices are always available, we don't need to wait until they show upLennart Poettering2012-04-121-2/+1
|
* relicense to LGPLv2.1 (with exceptions)Lennart Poettering2012-04-121-2/+2
| | | | | | | | | | | | | | We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
* units: exclude gettys from isolate requestsLennart Poettering2012-04-111-0/+1
| | | | | | | | | | | | | | | | gettys are nowadays mostly autospawned and hence usually subject to being shut down on isolate requests, since they are no dependency of any other unit. This is a bad idea if the user isolates between multi-user.graphical and graphical.target, hence exclude them from the isolation. This has the effect that gettys no longer cleaned up when emergency.target is isolated, which might actualy be considered a feature, even though it is a change from previous behaviour... Note that the one getty that really matters (the one on tty1) is still removed when isolating to emergency.target since it conflicts with emergency.service.
* service: ignore SIGPIPE by defaultv41Lennart Poettering2012-02-091-0/+1
|
* Add Mageia supportDexter Morgan2011-11-021-0/+3
| | | | | | | | | | | | | | | This patch adds support for the Mageia Linux distribution: http://www.mageia.org/ Mageia is a fork of Mandriva although some divergence has already occured and thus inclusion of these changes upstream allow us to (hopefully) migrate more rapidly to the new standard approaches systemd offers. Indeed, we already use the preferred mechanism of OS identification via the /etc/os-release file rather than a distro specific variation. This patch mostly mirrors the patch added previously for Mandriva support. In addition to those original authors, this patch was mostly written by Dexter Morgan with help from Colin Guthrie and Eugeni Dodonov.
* locale: support $LANGUAGE tooLennart Poettering2011-08-311-1/+1
| | | | | | | $LANGUAGE is a GNU extension that is probably worth supporting, since it allows specifiying an order of languages. https://bugs.freedesktop.org/show_bug.cgi?id=40510
* logind: autospawn gettys when necessaryLennart Poettering2011-06-281-1/+1
|
* exec: hangup/reset/deallocate VTs in gettysLennart Poettering2011-05-181-0/+4
| | | | | | | | | Explicitly disconnect all clients from a VT when a getty starts/finishes (requires TIOCVHANGUP, available in 2.6.29). Explicitly deallocate getty VTs in order to flush scrollback buffer. Explicitly reset terminals to a defined state before spawning getty.
* exec: drop process group kill mode since it has little use and confuses the userLennart Poettering2011-03-291-1/+1
|
* man: really fix all LC_MESSAGE to LC_MESSAGESLennart Poettering2011-03-291-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=35534
* build-sys: add Mandriva distribution supportv20Andrey Borzenkov2011-03-081-0/+3
| | | | | | | | | | | | | | | | | This merges several separate patches that I carry as part of Mandriva systemd RPM. They touch those parts that are very unlikely to be changed in near future and do not impose any functionality change for systemd core. I also think it is useful for troubleshooting to have real distribution name in system logs, espicially when someone reports problem upstream. The patch looks bigger than sum of replaced patches because - previous patches were applied on top of distro=fedora, now I need to add all those bits for distro=mandriva as well - part of patch was done as spec file magic, but it seems more logical to ship all these bits together
* build-sys: update ALTLinux supportAlexey Shabalin2011-02-281-0/+3
| | | | Please apply patch for update ALTLinux support.
* units: synchronize gettys to plymouth even if plymouth is killed by gdmLennart Poettering2011-02-241-1/+1
|
* plymouth: ensure we start not a single getty before plymouth is gone because ↵Lennart Poettering2011-02-211-1/+1
| | | | we never know which ttys plymouth still controls
* getty: unset locale before executionLennart Poettering2011-01-061-0/+4
| | | | | | | | | | | | | | | | | | On the console indian characters cannot be displayed, hence it is advisable to disable indian locales on the console, which most distributions traditionally did from a shell fragment executed post login. If getty gets started with locale settings passed it would itself however be translated without the no-indian-on-console fixup applied. Hence, for now don't pass any locale settings to getty/login, and thus rely on the classic post-login script fragment to set and fix the locale. Eventually we probably want to drop this again since the system locale should be read and set at one place, and not at multiple, and that one place should be PID 1. https://bugzilla.redhat.com/show_bug.cgi?id=663900
* Frugalware: start gettys after local.serviceMiklos Vajna2010-12-161-0/+3
|
* units: set TERM for gettys again, since they acquire a TTY on their ownLennart Poettering2010-11-161-0/+1
|
* units: delay getty until logins are allowedLennart Poettering2010-11-161-1/+1
|
* exec: automatically determine right TERM= setting based on tty nameLennart Poettering2010-11-151-1/+0
|
* units: make use of agetty mandatoryLennart Poettering2010-11-141-8/+1
|
* units: deal properly with the fact that agetty is called getty on DebianLennart Poettering2010-11-111-7/+7
|
* getty@.service: switch to agetty as the defaultKay Sievers2010-10-291-2/+2
|
* unit: replace StopRetroactively= by BindTo= dependenciesLennart Poettering2010-10-291-1/+1
| | | | | | | | The property StopRetroactively= needs to be per-dependency, not per-unit, in order to properly express dependencies between .mount units and its .device and fsck .service units. If the .device unit is unplugged the mount should go away, but if the fsck process terminates the .mount should stay.
* ubuntu: Treat Ubuntu as a distinct distro in configure.ac etcAndrew Edmunds2010-10-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Previously Ubuntu was treated as being equivalent to Debian, but the two distributions require different behaviour in certain places. This commit does not change the behaviour of systemd on either distro but it creates a framework for changes to be introduced by later commits. The following previously meant "Target is Debian or Ubuntu". * configure option "--with-distro=debian" * C preprocessor symbol "TARGET_DEBIAN" * Automake conditional "TARGET_DEBIAN" After this commit, all of the above are redefined to mean "Target is Debian" The following are introduced to mean "Target is Ubuntu". * configure option "--with-distro=ubuntu" * C preprocessor symbol "TARGET_UBUNTU" * Automake conditional "TARGET_UBUNTU" Most code written for Debian will also be applicable to Ubuntu. An extra Automake conditional "TARGET_DEBIAN_OR_UBUNTU" is introduced to avoid duplication of code that would otherwise occur. This commit updates configure.ac, Makefile.am and distro-specific source files in line with the above definitions.
* units: enable utmp for serial gettys tooLennart Poettering2010-10-081-4/+3
|
* service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a serviceLennart Poettering2010-10-081-0/+1
| | | | | | This should fix accounting for pam_limits and suchlike. https://bugzilla.redhat.com/show_bug.cgi?id=636036
* service: rename settings for Restart= from 'restart-always' to 'always' and ↵Lennart Poettering2010-10-051-1/+1
| | | | similar
* serial: use seperate getty template for serial ttysLennart Poettering2010-08-251-1/+1
|
* units: make sure getty@xxx.service is always run before gettys.targetLennart Poettering2010-08-181-0/+6
|
* getty: properly synchronize of tty devices being plugged inLennart Poettering2010-08-101-1/+2
|
* units: always send HUP when dealing with shells/gettys/loginsLennart Poettering2010-08-051-2/+3
|
* units: getty - suse: login wants SIGHUPKay Sievers2010-08-041-0/+3
|
* units: remove redundant ordering dependencyLennart Poettering2010-08-041-1/+0
|
* fedora: make sure the gettys are run before X starts upLennart Poettering2010-07-201-0/+1
|
* units: in order to make the default services parseable by GKeyFile, merge ↵Lennart Poettering2010-07-071-6/+1
| | | | repeated lines
* units: update shipped unit files for DefaultDependencies=Lennart Poettering2010-07-031-2/+6
|
* unit: add [Install] section to various service filesLennart Poettering2010-06-181-0/+8
|