RHEL9 systemctlコマンドでサービス一覧を参照する方法

環境
Red Hat Enterprise Linux release 9.2 (Plow)

概要
systemctlコマンドの結果の見方
表示 説明
active(running) 起動中(常にクライアントからの問い合わせ待ち)
active(existed) 起動中(サービス起動時に処理された後はのんびり待つ)
inactive(dead) 起動しておらず、起動失敗もしていない
failed      起動失敗
コマンド

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
systemctl list-unit-files --type=service
systemctl list-unit-files -t service
systemctl list-unit-files --type=service systemctl list-unit-files -t service
systemctl list-unit-files --type=service
systemctl list-unit-files -t service

実行結果
# systemctl list-unit-files -t service

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
UNIT FILE STATE PRESET
accounts-daemon.service enabled enabled
alsa-restore.service static -
alsa-state.service static -
arp-ethers.service disabled disabled
atd.service enabled enabled
auditd.service enabled enabled
autovt@.service alias -
avahi-daemon.service enabled enabled
blk-availability.service disabled disabled
bluetooth.service enabled enabled
UNIT FILE STATE PRESET accounts-daemon.service enabled enabled alsa-restore.service static - alsa-state.service static - arp-ethers.service disabled disabled atd.service enabled enabled auditd.service enabled enabled autovt@.service alias - avahi-daemon.service enabled enabled blk-availability.service disabled disabled bluetooth.service enabled enabled
UNIT FILE                                  STATE           PRESET
accounts-daemon.service                    enabled         enabled
alsa-restore.service                       static          -
alsa-state.service                         static          -
arp-ethers.service                         disabled        disabled
atd.service                                enabled         enabled
auditd.service                             enabled         enabled
autovt@.service                            alias           -
avahi-daemon.service                       enabled         enabled
blk-availability.service                   disabled        disabled
bluetooth.service                          enabled         enabled

 

IT

Posted by arkgame