Skip to main content

about systemd: how to change default runlevel (previously using inittab)

systemd does not use /etc/inittab file to change the default runlevel.
systemd uses symlinks to point to the default runlevel. You have to delete the existing symlink first before creating a new one.
# rm /etc/systemd/system/default.target

example to switch to runlevel 3 :
# ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
next example if you want to switch to run level 5 :
# ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

another options that may apply :
poweroff.target --> runlevel 0
rescue.target    --> runlevel 1
multi.user.target --> runlevel 2,3,4
graphical.target --> runlevel 5
reboot.target --> runlevel 6

source:
http://fedoraproject.org/wiki/Systemd

Comments

Popular posts from this blog

Installing Qualcomm Atheros AR8162 Fast Ethernet Driver on Lenovo G400

I was preparing Lenovo G400 laptop for my linux class, after I installed CentOS 6.5 on it, tada,,,, my ethernet adapter won't show up. I checked with ifconfig command but where the hell my eth0 ??. Then i type the command below : # lspci -v 01:00.0 Ethernet controller: Qualcomm Atheros AR8162 Fast Ethernet (rev 10)     Subsystem: Lenovo Device 3802     Flags: bus master, fast devsel, latency 0, IRQ 32     Memory at 90500000 (64-bit, non-prefetchable) [size=256K]     I/O ports at 2000 [size=128]     Capabilities: <access denied>     Kernel driver in use: alx It seem my wired network adapter do not have its driver. After searching on the net then I find this great article. I wrote it out on my blog to make it sure I have notes for the trouble. This is how we troubleshoot it :   First download this file : alx-linux-v2.0.0.6.rar unrar it, run make command, change directory...

All certification

Honor Code Certificate from edX - Linux Foundation