#author("2022-04-30T10:26:21+00:00","","")
#topicpath
///////////////////////////////////////////////////////////////////////////////
* 目次 [#n8d8b76d]
#contents();

///////////////////////////////////////////////////////////////////////////////
* runlevel (systemd) [#q206fb43]
|~runlevel |~description |~remark              |
|0         |poweroff     |                     |
|1         |rescure      |Xなし                |
|2,3,4     |multi user   |Xなし、NFSサーバ停止 |
|5         |graphical    |Xあり                |
|6         |reboot       |                     |
- systemd では、/etc/inittab が使われなくなっている。



///////////////////////////////////////////////////////////////////////////////
* runlevel (systemd 以前) [#a05c016c]
|~runlevel |~description         |~remark              |
|0         |停止                 |                     |
|1         |シングルユーザモード |Xなし                |
|2         |マルチユーザモード   |Xなし、NFSサーバ停止 |
|3         |マルチユーザモード   |Xなし                |
|4         |未使用               |                     |
|5         |マルチユーザモード   |Xあり                |
|6         |再起動               |                     |
|S         |シングルユーザモード |/etc/rc.d/rc.sysinit を実行 |


///////////////////////////////////////////////////////////////////////////////
* runlevel の確認 [#tdafa580]
- 現在と一つ前の runlevel を確認するには、runlevel コマンドを実行する
 # runlevel
 1 5
-- 出力結果の表す意味は、下記の通り:
 <一つ前の runlevel> <現在の runlevel>


///////////////////////////////////////////////////////////////////////////////
* default の runlevel の設定 [#s3fc7542]
//=============================================================================
** 一時的に変更する場合 [#x9654e13]
- 変更方法は、以下の2つのうちいずれか
- systemctl で変更する
 # systemctl isolate 
- /sbin/init で変更する
-- runlevel を変更するには、 init コマンドに 遷移先の runlevel を引数で渡して実行する:
 # init <next-runlevel>


//=============================================================================
** 恒久的に変更する場合 [#jdf372e7]
 # systemctl set-default graphical



トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS