systemd
systemd
systemd is a suite of basic building blocks for a Linux system. It provides a system and service manager that runs as PID 1 and starts the rest of the system.
CentOS 7〜 デフォルトのサーブし起動デーモン
以前はupstartなどだった
Systemd入門(1) - Unitの概念を理解する - めもめも
処理の単位はUnitと呼ばれる
target, service, device..
それぞれ設定ファイルのpostfixになる
Unit間の依存関係ツリーを構成したあとにPID 1のサービスマネージャがおのおののUnitを順次起動する
起動の順序は依存関係と分けて記述できる
エントリポイントはdefault.target(/etc/systemd/system/defalut.darget)
起動するものごとに依存性(wantsやrequireで指定する)があり、依存関係がたぐられる
runlevel
systemdの開発者によるupstartとの機能比較表
Why systemd?
service一覧が見たい
エントリポイントがある/etc/systemd/systemに定義されているはずなのでll /etc/systemd/systemとかすればよい
失敗したのでログが見たい
journalctl経由でjournaldを使う
journalctl -xe
最近のメッセージ(e)について詳細情報を見る(x)
https://gihyo.jp/admin/serial/01/ubuntu-recipe/0545
https://qiita.com/aosho235/items/9fbff75e9cccf351345c
歴史
なぜsystemdなのか? | POSTD
SysV init