homed: stop before stopping dbus
authorMarkus Weippert <markus@gekmihesg.de>
Tue, 4 Jan 2022 12:56:11 +0000 (13:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jan 2022 19:08:21 +0000 (20:08 +0100)
commite2012e0dd62b7bbfc0c07fc6bcbf63cc8910943a
tree9cfe296d2ba50bcf6b6e858b017e3887e1bee64b
parent7f7ad0e691eb2a05e7f319be8d098af760258dcd
homed: stop before stopping dbus

Otherwise, systemd-homed-active.service will fail to deactivate all
homes because homectl can no longer talk to homed if dbus stops first.
As a result, /home cannot be umounted.

Doing this on systemd-homed-active.service instead works as well, but
systemd-homed will exit 1 if dbus is already shut down.

(cherry picked from commit e00a25a7b41bd45ab73b47cbd94b3af909b8f8a1)
(cherry picked from commit 11f3040d0a1eee663acedda1bdb9aa450c22f2a4)
units/systemd-homed.service.in