mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
07ee5adb35
I think this is a slightly cleaner approach than parsing the configuration file at multiple places, as this way there's only a single reload cycle for logind.conf, and that's systemd-logind.service's runtime. This means that logind and dbus become a requirement of user-runtime-dir, but given that XDG_RUNTIME_DIR is not set anyway without logind and dbus around this isn't really any limitation. This also simplifies linking a bit as this means user-runtime-dir doesn't have to link against any code of logind itself.
23 lines
697 B
SYSTEMD
23 lines
697 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# 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)
|
|
After=systemd-user-sessions.service dbus.service
|
|
StopWhenUnneeded=yes
|
|
IgnoreOnIsolate=yes
|
|
|
|
[Service]
|
|
ExecStart=@rootlibexecdir@/systemd-user-runtime-dir start %i
|
|
ExecStop=@rootlibexecdir@/systemd-user-runtime-dir stop %i
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
Slice=user-%i.slice
|