最終更新:2022-12-13 (火) 05:43:53 (462d)
systemd/ユニット
種類
- systemdのunitにはシステム全体に一つのインスタンスが実行されるSystem Unitと ユーザーごとにインスタンスが実行されるUser Unitがある
System Unit
- Linux/usr/lib/systemd/system?
User Unit
- User Unitはsystemctlでの操作には--userオプションが必要になる。
- Linux/usr/lib/systemd/user
メモ
- systemctl cat <unit>で設定ファイルの場所を確認できる
- systemctl list-units
- systemctl list-units --type=service
- systemctl --type=service?
タイプ
Unitタイプ ファイル拡張子 詳細 Service unit? .service システムサービス Target unit? .target? systemd unit のグループ Automount unit? .automount? ファイルシステムの自動マウントポイント Device unit? .device? カーネルが認識するデバイスファイル Mount unit? .mount? ファイルシステムのマウントポイント Path unit? .path? ファイルシステム内のファイルまたはディレクトリー Scope unit? .scope? 外部作成のプロセス Slice unit? .slice? システムプロセスを管理する階層的に組織された unit グループ Snapshot unit? .snapshot? systemd マネージャーの保存状態 Socket unit? .socket? プロセス間の通信ソケット Swap unit? .swap? スワップデバイスまたはスワップファイル Timer unit? .timer systemd タイマー