I’m learning about systemd/systemctl and one of the first thing I was wondering is how to change or set to runlevel 3 (from runlevel 5) and then change it back???
so far what I have found are some symbolic links and files in /lib/systemd/system called
runlevel0.target -> poweroff.target
runlevel2.target -> multi-user.target
runlevel3.target -> multi-user.target
runlevel4.target -> multi-user.target
runlevel5.target -> graphical.target
runlevel6.target -> reboot.target
The init 3 and init 5 commands still work as expected in openSUSE 12.1. To close down your desktop and end up and a terminal prompt open a terminal session and enter:
sudo /sbin/init 3
Once the desktop has closed down, I often must press the enter key to get a terminal prompt login. Once you are done loading your drivers or what ever, logout as root and login as you. Then execute the command:
sudo /sbin/init 5
And log back into the desktop as normal. Did you know you can use my fastboot program to switch to run level 3 as well? Check out my blog on how fastboot works…
thanks James excelent script!!! the Idea of using systemd/systemctl is the same as the other post (mounting a USB memory), right now I’m cheking the links that you gave me!