5a44ca932e6c9c14f07bd1e52d10177c28993c32
[platform/upstream/user-session-units.git] / units / system / user-session@.service.in
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=User Manager for %u
10 After=systemd-user-sessions.service dbus.service
11 # This is needed for folks running Xorg on vt/1
12 Conflicts=getty@tty1.service
13
14 [Service]
15 User=%I
16 PAMName=login
17 # Note memory:/ required kernel memory CGroups support
18 ControlGroup=%R/user/%u/shared cpu:/ memory:/
19 ControlGroupModify=yes
20 Type=notify
21 StandardInput=tty
22 TTYPath=/dev/tty1
23 ExecStart=-@SYSTEMDUTILDIR@/systemd --user
24 Environment=DISPLAY=:0
25 Environment=XDG_RUNTIME_DIR=/run/user/%U
26 Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket
27
28 [Install]
29 Alias=user-session@%i.service