]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/user@.service.in
units: update user@.service to reflect new user cgroup paths
[thirdparty/systemd.git] / units / user@.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 Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 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
11
12 [Service]
13 User=%I
14 PAMName=systemd-shared
15 # in order to allow MEM_CG features to work, add "memory:/" here
16 ControlGroup=%R/user/%U.user/shared cpu:/
17 ControlGroupModify=yes
18 Type=notify
19 ExecStart=-@rootlibexecdir@/systemd --user
20 Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket
21
22 [Install]
23 Alias=user@%i.service