1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

units: add dependency ordering for emergency.service conflicts

If we want to stop those services which would compete for access to
the console, we need to have an ordering so that they are actually
stopped before the other things starts, not asynchronously.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-09-15 14:58:25 +02:00
parent 7c0e2b5559
commit 3449814b8b
3 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ DefaultDependencies=no
After=plymouth-start.service After=plymouth-start.service
Before=paths.target cryptsetup.target Before=paths.target cryptsetup.target
Conflicts=emergency.service Conflicts=emergency.service
Before=emergency.service
Conflicts=shutdown.target Conflicts=shutdown.target
Before=shutdown.target Before=shutdown.target

View File

@ -16,6 +16,7 @@ ConditionPathExists=!/run/plymouth/pid
DefaultDependencies=no DefaultDependencies=no
After=plymouth-start.service systemd-vconsole-setup.service After=plymouth-start.service systemd-vconsole-setup.service
Conflicts=emergency.service Conflicts=emergency.service
Before=emergency.service
Conflicts=shutdown.target initrd-switch-root.target Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target Before=shutdown.target initrd-switch-root.target

View File

@ -14,6 +14,7 @@ Documentation=man:systemd-ask-password-wall.path(8)
DefaultDependencies=no DefaultDependencies=no
Before=paths.target cryptsetup.target Before=paths.target cryptsetup.target
Conflicts=emergency.service Conflicts=emergency.service
Before=emergency.service
Conflicts=shutdown.target Conflicts=shutdown.target
Before=shutdown.target Before=shutdown.target