Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have set up 'unattended upgrades' on a 12.04 LTS machine. It's working quite fine with the exception of that it doesn't reboot even though all config files have been set to enable this.

Config files under /etc/apt/apt.conf.d:

50unattended-upgrades http://pastebin.com/850NqExv
10periodic http://pastebin.com/t0Xh9PPx

/var/run/reboot-required exists and has the contents "\*\*\* System restart required \*\*\*"

Actually now that I'm thinking of it unattended upgrades is having some problems sending email to the recipient due to network/mail issues. This is the only (albeit remote) source of trouble I can think of.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

Well I be damned, it proved to be the mailing issue all along. Once we sorted out the email problems 'unattended upgrades' rebooted the system just as intended.

share|improve this answer

Normally the /var/run/reboot-required is only set whenever the kernel (I think libc too) is updated, the services are restarted when upgrading, and since GNU/Linux is a modular OS, you won't need to restart for almost anything, but kernel.

If your system don't reboot, it may be due no new kernels available. If you are not sure, you can check /var/log/unattended-upgrades/unattended-upgrades.log and unattended-upgrades-shutdown.log. apt also have some hooks that trigger this, just didn't found the documentation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.