diff options
author | Radu Moisan <radu.moisan@intel.com> | 2013-01-19 22:47:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-20 12:58:55 +0000 |
commit | b8744d5376a9df4ec30120fdc8f39579d34d0545 (patch) | |
tree | 9503d5816da66544969292ddb5ff999e50c1b9a8 /meta/recipes-core/systemd/systemd-serialgetty | |
parent | b18886d9b7c913cd463a98d0ef1b3a8a240f5791 (diff) | |
download | poky-b8744d5376a9df4ec30120fdc8f39579d34d0545.tar.gz |
systemd: add systemd recipes
Add systemd recipes and associated support recipes.
Mostly based on meta-oe/meta-systemd, so almost all credit should go to:
Andreas Müller <schnitzeltony@googlemail.com>
Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Holger Hans Peter Freyther <holger@moiji-mobile.com>
Khem Raj <raj.khem@gmail.com>
Koen Kooi <koen@dominion.thruhere.net>
Martin Jansa <Martin.Jansa@gmail.com>
(From OE-Core rev: 6a8a48b4d0d0b9b8d8af46cae11245bcb870bbc3)
Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd-serialgetty')
-rw-r--r-- | meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service new file mode 100644 index 0000000000..8eeaab697c --- /dev/null +++ b/meta/recipes-core/systemd/systemd-serialgetty/serial-getty@.service | |||
@@ -0,0 +1,32 @@ | |||
1 | # This file is part of systemd. | ||
2 | # | ||
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. | ||
7 | |||
8 | [Unit] | ||
9 | Description=Serial Getty on %I | ||
10 | BindTo=dev-%i.device | ||
11 | After=dev-%i.device systemd-user-sessions.service | ||
12 | |||
13 | # If additional gettys are spawned during boot then we should make | ||
14 | # sure that this is synchronized before getty.target, even though | ||
15 | # getty.target didn't actually pull it in. | ||
16 | Before=getty.target | ||
17 | |||
18 | [Service] | ||
19 | Environment=TERM=vt100 | ||
20 | ExecStart=-/sbin/agetty -s %I @BAUDRATE@ | ||
21 | Restart=always | ||
22 | RestartSec=0 | ||
23 | UtmpIdentifier=%I | ||
24 | TTYPath=/dev/%I | ||
25 | TTYReset=yes | ||
26 | TTYVHangup=yes | ||
27 | KillMode=process | ||
28 | IgnoreSIGPIPE=no | ||
29 | |||
30 | # Some login implementations ignore SIGTERM, so we send SIGHUP | ||
31 | # instead, to ensure that login terminates cleanly. | ||
32 | KillSignal=SIGHUP | ||