mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00:00
26 lines
929 B
Plaintext
26 lines
929 B
Plaintext
# 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-user
|
|
Type=notify
|
|
ExecStart=-@rootlibexecdir@/systemd --user
|
|
# Apply same work around as apache's httpd until issues with user session
|
|
# killing is fixed (currently problem is that the kill issued by systemd --user
|
|
# is itself killed by systemd (PID1) before it can work which can lead to slow
|
|
# shutdowns
|
|
# http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/16363
|
|
ExecStop=/bin/kill -TERM ${MAINPID}
|
|
KillSignal=SIGCONT
|
|
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket
|
|
Slice=user-%i.slice
|