log slim logins to utmp/wtmp

This will be needed for the next physlock release.
This commit is contained in:
Pig Monkey 2015-12-16 18:59:48 -08:00
parent 9709a8fe0d
commit d39911e6e7
2 changed files with 19 additions and 0 deletions

View file

@ -14,6 +14,9 @@
- name: Install xev
pacman: name=xorg-xev state=present
- name: Install xorg-sessreg
pacman: name=xorg-sessreg state=present
- name: Install video driver(s)
pacman: name={{ item }} state=present
with_items: "{{ video_drivers }}"

View file

@ -16,3 +16,19 @@
line="login_cmd exec {{ user.shell }} --login ~/.xinitrc %session"
tags:
- slim
- name: Configure SLiM to properly log logins to utmp and wtmp
lineinfile: dest=/etc/slim.conf
regexp=^sessionstart_cmd
state=present
line="sessionstart_cmd /usr/bin/sessreg -a -l tty$(fgconsole) %user"
tags:
- slim
- name: Configure SLiM to properly log logouts to utmp and wtmp
lineinfile: dest=/etc/slim.conf
regexp=^sessionstop_cmd
state=present
line="sessionstop_cmd /usr/bin/sessreg -d -l tty$(fgconsole) %user"
tags:
- slim