Advertisement
effemmeffe

Arch autologin@.service

Jan 16th, 2013
1,641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.98 KB | None | 0 0
  1. [root@alarmpi ~]# cat /etc/systemd/system/
  2. autologin@.service       getty.target.wants/      multi-user.target.wants/ syslog.service
  3. default.target           local-fs.target.wants/   sysinit.target.wants/
  4. [root@alarmpi ~]# cat /etc/systemd/system/autologin@.service
  5. #  This file is part of systemd.
  6. #
  7. #  systemd is free software; you can redistribute it and/or modify it
  8. #  under the terms of the GNU Lesser General Public License as published by
  9. #  the Free Software Foundation; either version 2.1 of the License, or
  10. #  (at your option) any later version.
  11.  
  12. [Unit]
  13. Description=Getty on %I
  14. Documentation=man:agetty(8) man:systemd-getty-generator(8)
  15. Documentation=http://0pointer.de/blog/projects/serial-console.html
  16. After=systemd-user-sessions.service plymouth-quit-wait.service
  17. After=rc-local.service
  18.  
  19. # If additional gettys are spawned during boot then we should make
  20. # sure that this is synchronized before getty.target, even though
  21. # getty.target didn't actually pull it in.
  22. Before=getty.target
  23. IgnoreOnIsolate=yes
  24.  
  25. # On systems without virtual consoles, don't start any getty. (Note
  26. # that serial gettys are covered by serial-getty@.service, not this
  27. # unit
  28. ConditionPathExists=/dev/tty0
  29.  
  30. [Service]
  31. # the VT is cleared by TTYVTDisallocate
  32. ExecStart=-/sbin/agetty --noclear -a xbmc %I 38400
  33. Type=simple
  34. Restart=always
  35. RestartSec=0
  36. UtmpIdentifier=%I
  37. TTYPath=/dev/%I
  38. TTYReset=yes
  39. TTYVHangup=yes
  40. TTYVTDisallocate=yes
  41. KillMode=process
  42. IgnoreSIGPIPE=no
  43.  
  44. # Unset locale for the console getty since the console has problems
  45. # displaying some internationalized messages.
  46. Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
  47.  
  48. # Some login implementations ignore SIGTERM, so we send SIGHUP
  49. # instead, to ensure that login terminates cleanly.
  50. KillSignal=SIGHUP
  51.  
  52. [Install]
  53. Alias=getty.target.wants/getty@tty1.service
  54. WantedBy=getty.target
  55. [root@alarmpi ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement