Str*_*ger 7 server reboot 16.04
In my /etc/apt/apt.conf.d/50unattended-upgrades i found this:
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";
Run Code Online (Sandbox Code Playgroud)
The issue is that I don't know what the default value is and so if I need to uncomment the line (I don't want my server to reboot btw).
Should I uncomment the line by safety? Are there further actions to perform after doing that?
无人值守升级后自动重启的默认值为FALSE。
您可以通过在脚本本身中查看默认值的存储位置来确认您自己的系统:
grep 'Automatic-Reboot"' /usr/bin/unattended-upgrade
Run Code Online (Sandbox Code Playgroud)
默认值可能会随着软件升级而改变,尽管这似乎不太可能。为了确保您的系统在自动升级后不会重新启动,请在您的配置中明确禁用重新启动。
如果您不希望它自动重新启动,请将该部分设置为如下所示:
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "false";
Run Code Online (Sandbox Code Playgroud)
我就是这样设置的并且有效。
此页面说默认情况下不重新启动,但我很确定这是错误的。我认为我的系统第一次自动安装内核(在我更改配置之前),它重新启动。但无论哪种情况,上面的配置都会阻止它。
| 归档时间: |
|
| 查看次数: |
4603 次 |
| 最近记录: |