
En un servidor Ubuntu 16.04 tengo habilitadas AutomaticSecurityUpdates, lo que funciona bien. También quiero que se reinicie automáticamente por la noche si es necesario. Para esto tengo lo siguiente en /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";
Ha sido así durante dos días, pero cuando entro en él todavía veo *** System restart required ***
que el tiempo de actividad es de más de 7 días.
¿Alguien sabe por qué esto no funciona?