最終更新:2015-10-27 (火) 15:40:59 (3075d)
Linux/sbin/init
説明
- init is the parent of all processes on the system, it is executed by the kernel and is responsible for starting all other processes; it is the parent of all processes whose natural parents have died and it is responsible for reaping those when they die.
種類
sysvinit
設定ファイル
- Linux/etc/inittab
- Linux/etc/rc.d
- Linux/etc/rc.d/rc - responsible for starting/stopping services when the runlevel changes.
- Linux/etc/rc.d/rc.sysinit - システムの起動時に一度だけ実行される処理
- Linux/etc/rc.d/rc.local - そのシステム固有の設定処理
BSD系
設定ファイル
Upstart
- System V init との互換性を保ち、容易に移行可能であることが設計目標
- Ubuntu 6.10?~Ubuntu 14.10
- Red Hat Enterprise Linux 6 以降
- Fedora 9? ~ Fedora 14
- Debian 6.0(Squeeze) 以降
- Maemo
- WebOS?
- Chromium OS
- Chrome OS
設定ファイル
systemd
- Fedora 15
- openSUSE 12.1?
- Arch Linux
- Ubuntu 15.04~
- init -> Linux/lib/systemd/systemd
処理内容
- ネットワークの初期化
- ホスト名の設定
- Welcomeバナーの表示
- /procファイルシステムのマウント
- カーネルパラメータの設定
- クロックの設定
- keymapの読み込み
- システムフォントの読み込み
- スワップの有効化
- USBの初期化
- 必要に応じてfsckの実行
- quotaの有効化
- ハードディスクパラメータの設定
- カーネルモジュールの読み込み
- RAIDデバイスの組み込み
- ファイルシステムのマウント