How to switch from one run level to other runleve
Hi Team,
I have a situation where to change the runlevel from 3 to 5 without reboot or downtime. Earlier I heard like there is some command to switch from one runlevel to other runlevel without downtime/reboot. Thanks in Advance. |
see man init, especially "changing runlevels"
|
Yeah using init we can change run levels. By giving below way we can change runlevel
init 0 - > will shutdown init 1 -> single usermode init 3 -> textmode Run level 3 init 5 -> runlevel 5, where you get GUI init 6 - > reboot By using above to switch from runlevel 3 to runlevel 5 we need downtime/reboot. But in my case I cannot reboot as it is critical server. So I am looking for command that will switch run level without downtime. |
|
Quote:
Code:
telinit X |
With systemd in debian the inittab is removed so the runlevel is changed by another file, although I haven't figured out which.
|
Quote:
systemctl isolate multi-user.target # the equivalent of init 3 systemctl isolate graphical.target # the equivalent of init 5 To change the default runlevel: systemctl set-default multi-user.target systemctl set-default graphical.target |
Thank you suicidaleggroll that's good to know, I haven't seen any good documentation on systemd yet. It took me 4 years to get where I am with linux & 1 update to have to relearn it
|
I take it the version talked about is Jessie or above? Has systemd been implemented yet in Debian?
'init 1' no longer works? Fred. |
Quote:
--------------------- Steve Stites |
Quote:
|
All times are GMT -5. The time now is 11:54 PM. |