units: rely only on isolate to remove running services when entering rescue/emergency...
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Jul 2010 22:19:17 +0000 (00:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Jul 2010 22:19:17 +0000 (00:19 +0200)
units/emergency.service
units/emergency.target
units/fedora/halt.service
units/fedora/poweroff.service
units/fedora/reboot.service
units/fedora/single.service
units/fedora/sysinit.service
units/multi-user.target.m4
units/rescue.target

index a5a54bc..dd4a070 100644 (file)
@@ -10,7 +10,6 @@
 [Unit]
 Description=Emergency Shell
 DefaultDependencies=no
-After=shutdown.target
 
 [Service]
 ExecStartPre=-/bin/plymouth --hide-splash
index 63924ea..5bf2ae2 100644 (file)
@@ -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
index 4fe0d53..cf9ad49 100644 (file)
@@ -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
index 3a53875..e8b597c 100644 (file)
@@ -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
index 0f3e206..7a94db6 100644 (file)
@@ -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
index 27f3578..be30efc 100644 (file)
@@ -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
index 21872e8..0c25bd2 100644 (file)
@@ -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
index 323ba01..2029297 100644 (file)
@@ -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',
index 638f47c..2694856 100644 (file)
@@ -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]