Commit 9de6e40f authored by Benjamin Berg's avatar Benjamin Berg
Browse files

data: Fix indirect conflict with exit.target via app.slice

systemd v247 now puts services into app.slice by default. But app.slice
will have a conflict with exit.target, which in turn means that we still
get a conflict with exit.target indirectly.

Fix it by adding the appropriate Slice=-.slice into
gnome-session-restart-dbus.service. Also update the note in
gnome-session-shutdown.service to point out the requirements.

Closes: #74
parent 7f99c82d
[Unit]
Description=Restart DBus after GNOME Session shutdown
# Allow exit.target to start even if this unit is started with replace-irreversibly
# Also put it into a slice that doesn't have such implicit dependencies
# Allow exit.target to start even if this unit is started with replace-irreversibly.
# For this to work, we also need to be in the root slice.
DefaultDependencies=no
[Service]
Type=notify
ExecStart=@libexecdir@/gnome-session-ctl --restart-dbus
Slice=-.slice
[Unit]
Description=Shutdown running GNOME Session
# Allow exit.target to start even if this unit is started with replace-irreversibly
# The same is needed for all (weak) dependencies
# Allow exit.target to start even if this unit is started with replace-irreversibly.
# All (weak) dependencies need to do the same. Services also need to ensure they
# are in the root slice by setting Slice=-.slice.
DefaultDependencies=no
Conflicts=graphical-session.target graphical-session-pre.target
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment