Skip to content

Updates (Debian)

The agent updates itself only when its control file says so – off by default:

set agent update every 1 day      # every <n> minutes, hours or days: 1 minute to 7 days
set agent update disable          # off, as without the statement

The running agent checks by itself – no cron, no scheduled task. Off, or before the interval (plus a random delay of up to a tenth of it, at most 5 minutes) has passed, it does nothing. Otherwise it reads the newest version from the registry and, when it is newer than the installed one, hands it to a helper of its own that outlives the service's restart, which installs it –

  1. only when its signature verifies, with the key the installer put on the host (an update never brings its own);
  2. only when the new program accepts the control file (-t, as root, as the service reads it);
  3. keeping the program before, restarting the service, and going back to the program before when the new one does not run 30 seconds later.

A version that did not run, or refused the control file, is not tried again – the next newer one is. Nothing newer: nothing happens, nothing is logged.

A host that updated every minute before the statement was there keeps doing so: the release that brought it wrote set agent update every 1 minute at the end of its control file. A host updated by cron before keeps it until its first update by the agent's own release, which removes the cron file, its updater and the user flyingmonit-agent.

What How
Whether and when grep "set agent update" /etc/flyingmonit-agentrc
What it did journalctl -t flyingmonit-agent-update
Update now flyingmonit-agent update (whatever the interval)
Versions not tried cat /var/lib/flyingmonit-agent-update/rolled-back
Hold the updates set agent update disable

An update restarts the agent: FlyingMonit shows it stopped and started again, seconds apart.