Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
39
rated 0 times [  39] [ 0]  / answers: 1 / hits: 29415  / 3 Years ago, tue, july 6, 2021, 3:45:11

I just had a look at my Amazon EC2 instance and noticed I had 20 minutes exactly of downtime. I didn't know what caused it so I logged in to SSH and tried upgrading my packages, and saw that the unattended-upgrades package needed upgrading. I went ahead and did this.



After searching it seems like this package can automatically reboot your machine. Not sure why I didn't get to configure this as it came with the OS, but oh well.



Does anyone know how to prevent the package from automatically rebooting? Or how to stop it updating packages altogether? I can do that myself.


More From » server

 Answers
5

Verify that in the configuration file: /etc/apt/apt.conf.d/50unattended-upgrades you have set:



Unattended-Upgrade::Automatic-Reboot "false";


This will prevent the software to issue reboot also if needed by the upgrades.



Documentation


[#33409] Wednesday, July 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arkcker

Total Points: 296
Total Questions: 111
Total Answers: 104

Location: Nepal
Member since Tue, Sep 8, 2020
4 Years ago
arkcker questions
Tue, Aug 17, 21, 00:08, 3 Years ago
Sun, May 14, 23, 01:04, 1 Year ago
Wed, Nov 16, 22, 03:12, 1 Year ago
Tue, Jun 1, 21, 01:29, 3 Years ago
;