udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / units / systemd-sysupdate.timer
blob6ecd98d13edc516d54771e9ecbd57fff52df2746
1 #  SPDX-License-Identifier: LGPL-2.1-or-later
3 #  This file is part of systemd.
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU Lesser General Public License as published by
7 #  the Free Software Foundation; either version 2.1 of the License, or
8 #  (at your option) any later version.
10 [Unit]
11 Description=Automatic System Update
12 Documentation=man:systemd-sysupdate.service(8)
14 # For containers we assume that the manager will handle updates. And we likely
15 # can't even access our backing block device anyway.
16 ConditionVirtualization=!container
18 [Timer]
19 # Trigger the update 15min after boot, and then â€“ on average â€“ every 6h, but
20 # randomly distributed in a 2h…6h interval. In addition trigger things
21 # persistently once on each Saturday, to ensure that even on systems that are
22 # never booted up for long we have a chance to to do the update.
23 OnBootSec=15min
24 OnUnitActiveSec=2h
25 OnCalendar=Sat
26 RandomizedDelaySec=4h
27 Persistent=yes
29 [Install]
30 WantedBy=timers.target