1#  SPDX-License-Identifier: LGPL-2.1-or-later
2#
3#  This file is part of systemd.
4#
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.
9
10[Unit]
11Description=Automatic System Update
12Documentation=man:systemd-sysupdate.service(8)
13
14# For containers we assume that the manager will handle updates. And we likely
15# can't even access our backing block device anyway.
16ConditionVirtualization=!container
17
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.
23OnBootSec=15min
24OnUnitActiveSec=2h
25OnCalendar=Sat
26RandomizedDelaySec=4h
27Persistent=yes
28
29[Install]
30WantedBy=timers.target
31