<p dir="ltr"><br>
I guess you could use KillMode= for this?</p>
<p dir="ltr">Or, actually, dbus.service doesn't stop on logout, does it?...</p>
<p dir="ltr">For tmux, I have a tmux.service that runs:</p>
<p dir="ltr">ExecStart=/usr/bin/tmux start-server \x3B wait-for systemd</p>
<p dir="ltr">ExecStop=/usr/bin/tmux wait-for -S systemd \x3B kill-server</p>
<p dir="ltr">screen has no equivalent though.<br>
</p>