
Ubuntu 16.04 サーバーでは AutomaticSecurityUpdates を有効にしており、問題なく動作しています。また、必要に応じて夜間に自動的に再起動するようにしたいです。そのために、次の設定をしています/etc/apt/apt.conf.d/50unattended-upgrades
:
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
// Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
2 日間この状態が続いていますが、ssh で接続すると*** System restart required ***
、まだ稼働時間が 7 日以上あることがわかります。
なぜこれが機能しないのか誰か知っていますか?