/etc/apt/apt.conf.d/50unattended-upgrades говорит, что автоматическое время перезагрузки по умолчанию теперь, если вы не установите его на время. Время, которое помещается в файл конфигурации и комментарии, - 02:00, но я не хочу устанавливать его в определенное время суток. У меня есть еженедельные окна обслуживания для моих серверов ubuntu, и я хочу установить его тогда. Это просто параметр для работы? Другими словами, могу ли я перезагрузить свои серверы в среду в чае?
Программа unattended-upgrade является скриптом python, соответствующей частью которой является:
# reboot at the specified time
when = apt_pkg.config.find(
"Unattended-Upgrade::Automatic-Reboot-Time", "now")
if shutdown_lock > 0:
os.close(shutdown_lock)
logging.warning("Found %s, rebooting" % REBOOT_REQUIRED_FILE)
subprocess.call(["/sbin/shutdown", "-r", when])
Следовательно, поддерживаемые временные форматы поддерживаются функцией /sbin/shutdown, а именно (от man shutdown ]):
The time string may either be in the format "hh:mm" for hour/minutes
specifying the time to execute the shutdown at, specified in 24h clock
format. Alternatively it may be in the syntax "+m" referring to the
specified number of minutes m from now. "now" is an alias for "+0",
i.e. for triggering an immediate shutdown. If no time argument is
specified, "+1" is implied.
Программа unattended-upgrade является скриптом python, соответствующей частью которой является:
# reboot at the specified time
when = apt_pkg.config.find(
"Unattended-Upgrade::Automatic-Reboot-Time", "now")
if shutdown_lock > 0:
os.close(shutdown_lock)
logging.warning("Found %s, rebooting" % REBOOT_REQUIRED_FILE)
subprocess.call(["/sbin/shutdown", "-r", when])
Следовательно, поддерживаемые временные форматы поддерживаются функцией /sbin/shutdown, а именно (от man shutdown ]):
The time string may either be in the format "hh:mm" for hour/minutes
specifying the time to execute the shutdown at, specified in 24h clock
format. Alternatively it may be in the syntax "+m" referring to the
specified number of minutes m from now. "now" is an alias for "+0",
i.e. for triggering an immediate shutdown. If no time argument is
specified, "+1" is implied.
Программа unattended-upgrade является скриптом python, соответствующей частью которой является:
# reboot at the specified time
when = apt_pkg.config.find(
"Unattended-Upgrade::Automatic-Reboot-Time", "now")
if shutdown_lock > 0:
os.close(shutdown_lock)
logging.warning("Found %s, rebooting" % REBOOT_REQUIRED_FILE)
subprocess.call(["/sbin/shutdown", "-r", when])
Следовательно, поддерживаемые временные форматы поддерживаются функцией /sbin/shutdown, а именно (от man shutdown ]):
The time string may either be in the format "hh:mm" for hour/minutes
specifying the time to execute the shutdown at, specified in 24h clock
format. Alternatively it may be in the syntax "+m" referring to the
specified number of minutes m from now. "now" is an alias for "+0",
i.e. for triggering an immediate shutdown. If no time argument is
specified, "+1" is implied.
Текущая версия в Ubuntu-репозиториях пока не поддерживается.
Однако, если вы клонируете текущую версию из GitHub, вы можете установить Update-Days как: {"Tue"}; в вашей конфигурации файл, поэтому он будет перезагружаться только по вторникам в указанное вами время.
Текущая версия в Ubuntu-репозиториях пока не поддерживается.
Однако, если вы клонируете текущую версию из GitHub, вы можете установить Update-Days как: {"Tue"}; в вашей конфигурации файл, поэтому он будет перезагружаться только по вторникам в указанное вами время.
Текущая версия в Ubuntu-репозиториях пока не поддерживается.
Однако, если вы клонируете текущую версию из GitHub, вы можете установить Update-Days как: {"Tue"}; в вашей конфигурации файл, поэтому он будет перезагружаться только по вторникам в указанное вами время.