summaryrefslogtreecommitdiffstats
path: root/data/gnome-session-restart-dbus.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'data/gnome-session-restart-dbus.service.in')
-rw-r--r--data/gnome-session-restart-dbus.service.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/gnome-session-restart-dbus.service.in b/data/gnome-session-restart-dbus.service.in
new file mode 100644
index 0000000..6389c32
--- /dev/null
+++ b/data/gnome-session-restart-dbus.service.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=Restart DBus after GNOME Session shutdown
+
+# 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