From: Lennart Poettering Date: Mon, 12 Jul 2010 22:19:17 +0000 (+0200) Subject: units: rely only on isolate to remove running services when entering rescue/emergency... X-Git-Tag: v3~22 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a974d58e83e409a92ca916bb9bbce0e457ea896f;p=systemd units: rely only on isolate to remove running services when entering rescue/emergency modes --- diff --git a/units/emergency.service b/units/emergency.service index a5a54bc9..dd4a0703 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -10,7 +10,6 @@ [Unit] Description=Emergency Shell DefaultDependencies=no -After=shutdown.target [Service] ExecStartPre=-/bin/plymouth --hide-splash diff --git a/units/emergency.target b/units/emergency.target index 63924eae..5bf2ae23 100644 --- a/units/emergency.target +++ b/units/emergency.target @@ -9,5 +9,5 @@ [Unit] Description=Emergency Mode -Requires=shutdown.target umount.target emergency.service -After=shutdown.target umount.target emergency.service +Requires=emergency.service +After=emergency.service diff --git a/units/fedora/halt.service b/units/fedora/halt.service index 4fe0d532..cf9ad49e 100644 --- a/units/fedora/halt.service +++ b/units/fedora/halt.service @@ -9,8 +9,7 @@ Description=Halt DefaultDependencies=no Requires=shutdown.target umount.target killall.service -Conflicts=sysinit.service -After=shutdown.target umount.target killall.service sysinit.service +After=shutdown.target umount.target killall.service [Service] Type=finish diff --git a/units/fedora/poweroff.service b/units/fedora/poweroff.service index 3a538757..e8b597c2 100644 --- a/units/fedora/poweroff.service +++ b/units/fedora/poweroff.service @@ -9,8 +9,7 @@ Description=Power-Off DefaultDependencies=no Requires=shutdown.target umount.target killall.service -Conflicts=sysinit.service -After=shutdown.target umount.target killall.service sysinit.service +After=shutdown.target umount.target killall.service [Service] Type=finish diff --git a/units/fedora/reboot.service b/units/fedora/reboot.service index 0f3e206e..7a94db67 100644 --- a/units/fedora/reboot.service +++ b/units/fedora/reboot.service @@ -9,8 +9,7 @@ Description=Reboot DefaultDependencies=no Requires=shutdown.target umount.target killall.service -Conflicts=sysinit.service -After=shutdown.target umount.target killall.service sysinit.service +After=shutdown.target umount.target killall.service [Service] Type=finish diff --git a/units/fedora/single.service b/units/fedora/single.service index 27f3578c..be30efca 100644 --- a/units/fedora/single.service +++ b/units/fedora/single.service @@ -10,7 +10,8 @@ [Unit] Description=Rescue Shell DefaultDependencies=no -After=shutdown.target sysinit.target +Conflicts=multi-user.target +After=sysinit.target multi-user.target [Service] ExecStartPre=-/bin/plymouth --hide-splash diff --git a/units/fedora/sysinit.service b/units/fedora/sysinit.service index 21872e8d..0c25bd25 100644 --- a/units/fedora/sysinit.service +++ b/units/fedora/sysinit.service @@ -8,7 +8,8 @@ [Unit] Description=System Initialization DefaultDependencies=no -Before=emergency.service emergency.target +Conflicts=shutdown.target +Before=shutdown.target emergency.service emergency.target [Service] ExecStart=/etc/rc.d/rc.sysinit diff --git a/units/multi-user.target.m4 b/units/multi-user.target.m4 index 323ba01a..2029297f 100644 --- a/units/multi-user.target.m4 +++ b/units/multi-user.target.m4 @@ -10,7 +10,7 @@ [Unit] Description=Multi-User Requires=basic.target -Conflicts=rescue.target shutdown.target +Conflicts=rescue.target After=basic.target rescue.target m4_dnl m4_ifdef(`TARGET_FEDORA', diff --git a/units/rescue.target b/units/rescue.target index 638f47c1..2694856c 100644 --- a/units/rescue.target +++ b/units/rescue.target @@ -9,9 +9,8 @@ [Unit] Description=Rescue Mode -Requires=sysinit.target local-fs.target swap.target shutdown.target -Conflicts=emergency.service emergency.target -After=sysinit.target local-fs.target swap.target shutdown.target emergency.service emergency.target +Requires=sysinit.target local-fs.target swap.target +After=sysinit.target local-fs.target swap.target Names=runlevel1.target [Install]