Professional Documents
Culture Documents
THE GEEK DIARY SOLARIS VXVM VCS LINUX INTERVIEW QUESTIONS ORACLE
BLOG POST
Systemd has replaced sysVinit as the default service manager in RHEL 7. Some of the sysVinit commands
have been symlinked to their RHEL 7 counterparts, however this will eventually be deprecated in favor of
the standard systemd commands in the future.
0 runlevel0.target, poweroff.target System halt/shutdown
3 runlevel3.target, multiuser.target Multiuser, nongraphical mode, text console
only
5 runlevel5.target, graphical.target Multiuser, graphical mode
6 runlevel6.target, reboot.target Reboot
http://thegeekdiary.com/centosrhel7howtochangerunlevelsinrhel7withsystemd/ 1/5
3/28/2017 CentOS / RHEL 7 : How to change runlevels (targets) with systemd
# systemctl isolate multi‐user.target
To view what targets are available you can issue the listunits option with the type target
# systemctl list‐units ‐‐type=target
Run level 3 is emulated by multiuser.target. This is done by symbolic link and can be used
interchangeably
# systemctl isolate multi‐user.target
# systemctl isolate runlevel3.target
# ls ‐l /usr/lib/systemd/system/runlevel3.target
lrwxrwxrwx 1 root root 17 Oct 18 11:41 /usr/lib/systemd/system/runlevel3.target ‐> multi‐user.target
Run level 5 is emulated by graphical.target. This is also done by symbolic link and can be used
interchangeably
# systemctl isolate graphical.target
# systemctl isolate runlevel5.target
# ls ‐l /usr/lib/systemd/system/runlevel5.target
lrwxrwxrwx 1 root root 16 Oct 18 11:41 /usr/lib/systemd/system/runlevel5.target ‐> graphical.target
# systemctl set‐default multi‐user.target
To get the currently set default, you can use the getdefault option.
# systemctl get‐default
http://thegeekdiary.com/centosrhel7howtochangerunlevelsinrhel7withsystemd/ 2/5
3/28/2017 CentOS / RHEL 7 : How to change runlevels (targets) with systemd
The default runlevel in systemd can also be set using the below method (not recommended though).
# ln ‐sf /lib/systemd/system/.target /etc/systemd/system/default.target
The default target can also be set in the kernel line during boot by adding the following option :
systemd.unit=multi‐user.target
SHARE THIS
Filed Under: CentOS/RHEL 7
About Sandeep
India based Unix Admin, Cloud Evangelist and a
Virtualization lover. I am Sandeep Patil. I work as a Unix
Administrator and love playing around with Linux, Solaris
and various other virtualization and HA solutions. The
Geek Diary blog is all about howtos, basics and concepts
on various Linux/UNIX related topics. I hope you find the In the Right Cloud?
blog useful. Be Sure. Flexible, Scalable,
Secure: Control Your Cloud
Follow The blog On : Twitter, Facebook, Google+ with IBM Bluemix®.
http://thegeekdiary.com/centosrhel7howtochangerunlevelsinrhel7withsystemd/ 3/5
3/28/2017 CentOS / RHEL 7 : How to change runlevels (targets) with systemd
SIGN UP NOW
742 196
Fans Followers
523 298
Subscribers Followers
http://thegeekdiary.com/centosrhel7howtochangerunlevelsinrhel7withsystemd/ 4/5
3/28/2017 CentOS / RHEL 7 : How to change runlevels (targets) with systemd
LDOMs (OVM for SPARC) Command line The ultimate Solaris Volume Manager (SVM)
reference interview questions
Solaris Volume Manager (SVM) command line The ultimate Solaris zones (containers) interview
reference questions
Solaris ZFS command line reference The ultimate Solaris networking interview
questions
RHEL 7 – RHCSA Notes (Cheat Sheets)
The ultimate ZFS interview questions
CentOS / RHEL 7 : firewalld Cheat Sheet HARDWARE CHEAT SHEETS
Most Commonly used ALOM commands
Most Commonly used ILOM commands
Most Commonly used LOM commands
Most commonly used XSCF commands
Most Commonly used RSC commands
How to login into console from ILOM, ALOM,
LOM, ELOM, XSCF, RSC
http://thegeekdiary.com/centosrhel7howtochangerunlevelsinrhel7withsystemd/ 5/5