{"id":689,"date":"2017-02-15T04:22:56","date_gmt":"2017-02-14T21:22:56","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=689"},"modified":"2017-08-10T09:09:41","modified_gmt":"2017-08-10T02:09:41","slug":"rhelcentos-7-systemd-targets-replacement-of-runlevels","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2017\/02\/15\/rhelcentos-7-systemd-targets-replacement-of-runlevels\/","title":{"rendered":"RHEL\/CentOS 7 systemd &#8216;targets&#8217; replacement of runlevels"},"content":{"rendered":"<p>cat \/etc\/inittab<br \/>\n# inittab is no longer used when using systemd.<br \/>\n#<br \/>\n# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.<br \/>\n#<br \/>\n# Ctrl-Alt-Delete is handled by \/usr\/lib\/systemd\/system\/ctrl-alt-del.target<br \/>\n#<br \/>\n# systemd uses &#8216;targets&#8217; instead of runlevels. By default, there are two main targets:<br \/>\n#<br \/>\n# multi-user.target: analogous to runlevel 3<br \/>\n# graphical.target: analogous to runlevel 5<br \/>\n#<br \/>\n# To view current default target, run:<br \/>\n# systemctl get-default<br \/>\n#<br \/>\n# To set a default target, run:<br \/>\n# systemctl set-default TARGET.target<\/p>\n<p>Runlevel 3 is now multi-user.target and runlevel 5 is now graphical.target.<\/p>\n<p>systemctl set-default multi-user.target;<br \/>\nsystemctl set-default graphical.target;<\/p>\n<p>To switch from graphical to multi-user:<br \/>\nsystemctl isolate multi-user.target;<\/p>\n<p>To switch from multi-user to graphical:<br \/>\nsystemctl isolate graphical.target;<\/p>\n<p>Links:<br \/>\n<a href=\"https:\/\/www.centos.org\/forums\/viewtopic.php?t=47306\">https:\/\/www.centos.org\/forums\/viewtopic.php?t=47306<\/a><br \/>\n<a href=\"http:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.special.html\">http:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.special.html<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=jbYucYX1WwM\">https:\/\/www.youtube.com\/watch?v=jbYucYX1WwM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 \/usr\/lib\/systemd\/system\/ctrl-alt-del.target # # systemd uses &#8216;targets&#8217; instead of runlevels. By default, there are two main targets: # # multi-user.target: analogous to runlevel 3 # graphical.target: analogous [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[212,216,32,217,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/689"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":2,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}