[systemd-devel] [systemd-commits] units/basic.target units/poweroff.target units/reboot.target

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Nov 6 06:16:50 PST 2014


On Thu, Nov 06, 2014 at 02:12:52PM +0000, "Jóhann B. Guðmundsson" wrote:
> 
> On 11/06/2014 01:28 PM, Lennart Poettering wrote:
> >However, doing unattended upgrades at shutdown is not really a
> >common case.
> 
> 
> Well for Debian and Debian based distribution it most certainly can
> be the case since it has allowed for it's update/upgrade mechanism
> to be configured to install updates on shutdown.
> 
> In Fedora we had at least couple of cases where users were doing the same.
> 
> And if memory serves me correct with at least one case that was one
> large installation in university where they had an cron job that
> updated the lab computers , then shut them down at a spesific time
> of day or updated them before they got shutdown
> 
> In both cases ( cronjob, shutdown command ) I think the solution
> would be to create a unit that is installed and executed before the
> shutdown target.
What matters is how it is all arranged:

- if there's a job that does stuff, and then calls reboot or shutdown
- a hook into the shutdown or reboot target does some work

In the first case, things are fine. In the second, not. But it seems
that only the first case is actually used.

Zbyszek


More information about the systemd-devel mailing list