Sunday, July 7, 2013

Changing runlevel aka targets in Fedora using systemd

On my Fedora the old and handy /etc/inittab file now only has his

cat /etc/inittab
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target
#
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To set a default target, run:
#
# ln -sf /lib/systemd/system/.target /etc/systemd/system/default.target
#


What does it mean? it mean now if you want to boot the box into text or gui you have to do the following ....

Booting system in text only/multi-user mode execute the command
# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

Booting system in Graphical/multi-user mode execute the command
 # ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

 

No comments:

Post a Comment