1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

units: rely only on isolate to remove running services when entering rescue/emergency modes

This commit is contained in:
Lennart Poettering 2010-07-13 00:19:17 +02:00
parent 0667db89fb
commit a974d58e83
9 changed files with 12 additions and 15 deletions

View File

@ -10,7 +10,6 @@
[Unit]
Description=Emergency Shell
DefaultDependencies=no
After=shutdown.target
[Service]
ExecStartPre=-/bin/plymouth --hide-splash

View 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

View 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

View 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

View 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

View 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

View 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

View 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',

View 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]