To troubleshoot or recover the system, you can temporarily change the current target without rebooting the system. To switch to a different target, use the systemctl isolate command.
Before you begin
- You have administrative privileges.
About this task
By selecting or changing systemd targets, you define and control selective services and units starting during the boot process. You can also view the current default, switch targets, or access the emergency shell prompt as needed.
Procedure
-
Display the list of targets you can select:
$ systemctl list-units --type target
-
Change to a different target unit in the current session:
# systemctl isolate <name>.target
Replace <name> with the name of the target unit you want to use in the current session.
# systemctl isolate multi-user.target
This command starts the multi-user target unit and all dependent units. It also immediately stops all other units that are not part of the new target. As this is a temporary operation, the system will boot again into the default target when you reboot the host. You can only isolate targets that have the AllowIsolate=yes option set in the unit files.
For details, see the systemctl(1) man page on your system.