mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
fb6becb443
In order to prepare things for the single-writer cgroup scheme, let's make logind use systemd's own primitives for cgroup management. Every login user now gets his own private slice unit, in which his sessions live in a scope unit each. Also, add user@$UID.service to the same slice, and implicitly start it on first login.
22 lines
598 B
SYSTEMD
22 lines
598 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=User Manager for %I
|
|
After=systemd-user-sessions.service
|
|
|
|
[Service]
|
|
User=%I
|
|
PAMName=systemd-shared
|
|
Type=notify
|
|
ExecStart=-@rootlibexecdir@/systemd --user
|
|
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket
|
|
Slice=user-%i.slice
|
|
|
|
[Install]
|
|
Alias=user@%i.service
|