了解fedora default.target
更新記錄
item | note |
---|---|
20160707 | 第一版 |
目錄
systemd
- /etc/systemd/system/graphical.target.wants/:使用者設定載入的 unit
- /usr/lib/systemd/system/graphical.target.wants/:系統預設載入的 unit
pstree
systemd為第一個process
1 | [root@localhost /]# pstree |
default.target
1 | [root@localhost /]# ls -l /usr/lib/systemd/system/runlevel*.target |
systemctl set-default xx
列出可用的運作層級
systemctl list-units –type target
1 | [root@localhost system]# systemctl list-units --type target |
顯示目前系統預設運作層級
systemctl get-default
1 | [root@localhost system]# systemctl get-default |
設定開機啟動至文字模式(runlevel 3)
systemctl set-default multi-user.target
1 | [root@localhost system]# systemctl set-default multi-user.target |
1 | [root@localhost system]# ls -l /etc/systemd/system/default.target |