auto-update-policy(5)
NAME
auto-update-policy - one style of updating a computer
SYNOPSIS
/usr/share/auto-update/policies/<id>.toml
/etc/auto-update/policies/<id>.toml
DESCRIPTION
A policy file describes one style of updating: when to check, when to apply updates, when to do a log out or restart they leave owed, and which of those a person may change. The window, the text front end and the command line draw from the file, so a new style is a new file and never a code change.
The file name is the id. A file in /etc/auto-update/policies/ replaces the vendor file with the same id. A file that fails to load is reported by auto-update policies and skipped; the others still apply.
FORMAT
schema = 2 id = "normal" name = "Normal" description = "Shown under the name, on one line." default = true
[check] every = "1d"
[download] ahead = false
[update] days = "tue,fri" start = "02:00" length = "3h"
[restart] days = "tue,fri" start = "02:00" length = "3h"
[notify] routine_after = "0d" repeat = "1d"
[apply] grace = "7d" finish_countdown = "10m"
[require] ac_power = true unmetered = true
[param.update_days] type = "days" label = "Update days" default = "tue,fri" binds = "update.days"
Durations are nd, nh or nm. Times are HH:MM, local. Days are a comma list of mon to sun, or daily.
KEYS
default- This policy is in force when none is chosen. At most one vendor policy says so; an administrator policy that says so wins.
custom- The policy the window's Customize button edits. Customize copies the selected policy's values into it, key by key. Only one policy may say so; with two, there is no Customize.
check.every- How often to ask the repositories, between
1hand1d. download.ahead- Download update content at each check, so applying later is quicker. Applying still plans afresh against current metadata, so content superseded in between was downloaded for nothing.
update- When pending updates are applied unasked: in every occurrence of this window, one attempt each, with no notice period. A policy without an
[update]table never applies anything unasked.daysnames the day an occurrence starts;lengthis1hto24h, and may run past midnight. restart- When a log out or restart that an applied update left owed is done unasked, once the grace period has run out. The same form as
update; every policy has one. notify.routine_after- How long an update that fixes no known security problem waits before it is mentioned. At most
14d. notify.repeat- The reminder interval while anything is pending or owed. At least
1h. apply.grace- How long a log out or restart may wait. It starts 24 hours after the notification about it was sent, read or not; the log out or restart is then done in the first
restartwindow.1dto31d, in any file; the front ends warn above14d. apply.finish_countdown- The warning before a log out or restart: one the grace period forces, or one following an apply the person asked for. At most
1h. require.ac_power,require.unmetered- Never apply on battery, or on a connection NetworkManager reports as metered. A request to apply now ignores both.
PARAMETERS
A [param.key] table lets a person change one key, and nothing else is changeable. binds names the key: update.days, update.start, update.length, restart.days, restart.start, restart.length, apply.grace, apply.finish_countdown, notify.routine_after, notify.repeat, download.ahead, require.ac_power or require.unmetered. Whether a policy has an update window is never a parameter: that is choosing another policy. default must equal the bound key's value in the file.
type is one of:
days: a comma list ofmontosun, ordaily; never empty.time:HH:MM.duration: with optionalminandmax.bool:trueorfalse.choice: one ofvalues, each valid for the bound key.
label is the field's name in the front ends, and the optional help is shown beneath it, verbatim.