Bug#856268: unattended-upgrades: reboot on a specific day

2019-09-19 Thread Balint Reczey
Control: tags -1 wontfix
Control: forwarded -1 https://github.com/mvo5/unattended-upgrades/issues/224

Hi Johannes,

While I see the value of not restarting on weekdays I believe adding
this feature to u-u is not the best way to go. It would add logic that
can't satisfy every use case.
For example, sometimes there are workdays on weekends, sometimes
migrations of the weekends thus a simple static rule of restarting on
Sundays may not fit.

I suggest creating a systemd timer or a cron job that fits your
preferred schedule and looks for /var/run/reboot-required and reboots
only when it is present.

Cheers,
Balint

-- 
Balint Reczey
Ubuntu & Debian Developer



Bug#856268: unattended-upgrades: reboot on a specific day

2017-02-27 Thread johannes.black
Package: unattended-upgrades
Version: 0.93.1
Severity: wishlist

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***
Hi,

the unattended-upgrades packages is fine.

It would be great if there would be a reboot option for a specific day
(e.g. on Sunday) instead of every day. Some servers need to work on
weekdays.

Sure it is possible to create a cron job but I don't want to reboot if I
don't have to.

Is this additional functionality planned?

Greetings and thanks,
John

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages unattended-upgrades depends on:
ii  apt1.4~rc1
ii  apt-utils  1.4~rc1
ii  debconf [debconf-2.0]  1.5.60
ii  init-system-helpers1.47
ii  lsb-base   9.20161125
ii  lsb-release9.20161125
ii  python33.5.3-1
ii  python3-apt1.4.0~beta2
ii  ucf3.0036
ii  xz-utils   5.2.2-1.2+b1

Versions of packages unattended-upgrades recommends:
ii  cron [cron-daemon]  3.0pl1-128

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx  8.1.2-0.20160123cvs-3
ii  exim4-daemon-light [mail-transport-agent]  4.88-5
pn  needrestart

-- Configuration Files:
/etc/apt/apt.conf.d/50unattended-upgrades changed:
// Automatically upgrade packages from these origin patterns
Unattended-Upgrade::Origins-Pattern {
// Archive or Suite based matching:
// Note that this will silently match a different release after
// migration to the specified archive (e.g. testing becomes the
// new stable).
  "o=Debian,n=stretch";
  "o=Debian,n=stretch-updates";
  "o=Debian,n=stretch-proposed-updates";
  "origin=Debian,n=stretch,label=Debian-Security";
};
// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
//  "vim";
//  "libc6";
//  "libc6-dev";
//  "libc6-i686";
};
// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run 
//   dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrade::MinimalSteps "true";
// Install all unattended-upgrades when the machine is shuting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
//Unattended-Upgrade::InstallOnShutdown "true";
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "u...@example.com"
Unattended-Upgrade::Mail "root";
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
//Unattended-Upgrade::MailOnlyOnError "true";
// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
 
Unattended-Upgrade::Mail "root";
 
// Zusätzliche Optionen wie ein automatischer Updates nach Updates die das 
benötigen (z.B. Kernelupdates)
 
// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";
 
// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";
 
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "03:00";
 
// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";
// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";


-- debconf information:
  unattended-upgrades/origins_pattern: 
"origin=Debian,codename=${distro_codename},label=Debian-Security";
  unattended-upgrades/enable_auto_updates: false