upgrades: Add needrestart to restart services as needed

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2020-05-11 11:07:26 -04:00 committed by Sunil Mohan Adapa
parent 935db83d8b
commit 0b5c195e17
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ version = 3
is_essential = True
managed_packages = ['unattended-upgrades']
managed_packages = ['unattended-upgrades', 'needrestart']
_description = [
_('Check for and apply the latest software and security updates.')

View File

@ -0,0 +1,2 @@
# Automatically restart services when needed.
$nrconf{restart} = 'a';