Tuesday, January 17, 2017

Boot system into different targets manually




List all system unit configuration files
#systemctl –t help


List all the targets on RHEL server
# systemctl list-units –type=target




List all dependencies of current multi user target #systemctl list-dependencies multi-user.target


List the default target#systemctl get-default





Change the target to multi-user.target#systemctl isolate multi-user.target



Set the computer default target to multi-user.target#systemctl set-default multi-user.target


Default location of unit configuration files

/usr/lib/systemd/system

Location of additional configuration files

/etc/systemd/system




Change the target and system boot:


While machine is booting enter “e” when prompted and go to the end of the line containing “linux16” and the following test to boot the system in the different target







*) when changing the target at boot we need to enter ctl+x to make the changes effective



No comments:

Post a Comment