システムの再起動が必要かどうかを自問する場合があります。これを見つける簡単な方法は、needs-restarting
のようなコマンドを使用することです。
このコマンドはyum-utils
の一部です パッケージ。
必要-再起動 は、プロセスIDまたはそれらが使用するコンポーネントが更新される前に実行を開始したプロセスIDのリストを報告するプログラムです。
ニーズ-再開する人
Webサーバーの例:
root@web [~]# needs-restarting -r
Core libraries or services have been updated:
systemd -> 219-73.el7_8.6
glibc -> 2.17-307.el7.1
Reboot is required to ensure that your system benefits from these updates.
More information:
https://access.redhat.com/solutions/27943
root@web [~]#
-r, --reboothint Only report whether a full reboot is required (exit code 1) or not (exit code 0).
リソース:
ニーズ-マニュアルページを再開する
yum-utils / needs-restarting.py