Files
systemd/units/user-runtime-dir@.service.in

25 lines
1019 B
SYSTEMD

# SPDX-License-Identifier: LGPL-2.1-or-later
#
# 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 Runtime Directory /run/user/%i
Documentation=man:user@.service(5)
# Order after the user record measurement (started by logind before this unit), so that the user's record is
# measured into the 'login' TPM2 NvPCR before the runtime dir — and thus the user's session — becomes
# available. This is ordering only (no Wants=/Requires=): a measurement failure must never block login.
After=systemd-logind.service dbus.service systemd-pcrlogin@%i.service
IgnoreOnIsolate=yes
[Service]
ExecStart={{LIBEXECDIR}}/systemd-user-runtime-dir start %i
ExecStop={{LIBEXECDIR}}/systemd-user-runtime-dir stop %i
Type=oneshot
RemainAfterExit=yes
Slice=user-%i.slice