See what the reboot check runs
What will the reboot check actually do?
Quox ships ready-made fleet recipes. Ask what one runs before you point it at a server, then read it yourself.
What you get: the exact command a recipe will run on your servers, and whether it changes anything, before you run it.
Ask Quox
Section titled “Ask Quox”Ask in plain words:
There is a ready-made check for whether a server needs a reboot. Before I use it, what exactly does it run on the box, and is it safe to run?
▤ AOCL │ L1 identity complete · allowed · 1ms
▤ AOCL │ L3 policy gate complete · proceed · 2ms
◐ QUOX │ cli ✔ QUOX │ cli │ 0 exit code, 5090 duration ms · 6.3s
⛓ AEE │ envelope opened · ops.tool · quox_cli ok
⛓ AEE │ envelope opened · stream_success
It's the built-in recipe reboot-required ("Reboot required?"), and it's safe to run. It is classed as read only. It runs one command on the box: test -f /var/run/reboot-required && cat /var/run/reboot-required.pkgs || echo none • It checks whether the file /var/run/reboot-required exists. Debian and Ubuntu create that file after an update that needs a restart. • If the file exists, it prints /var/run/reboot-required.pkgs , which lists the packages that asked for the reboot. • If the file doesn't exist, it prints none . Nothing is written, installed, restarted or changed. It takes no parameters and doesn't run detached, so it finishes and returns its output. • Non-Debian hosts: The file is a Debian and Ubuntu convention. On a RHEL-style host, none would only mean the file isn't there. It wouldn't prove no reboot is needed. • Missing package list: If the file exists but the .pkgs list doesn't, cat fails and the command prints none . That would be a false negative, though it's rare. I can run it against a particular host if you'd like. Tell me which one.
21.1s · 1 tool · 0 approvals
quox.✔ Machine verified against the CLI on 23 Nov 2026 · test report mwthdf
Quox read the recipe and changed nothing. It quoted the one command the recipe runs and said it only reads. It also pointed out two limits of the check itself: the flag file is a Debian and Ubuntu habit, and a missing package list makes the check print none even when a reboot is due.
Do it yourself
Section titled “Do it yourself”quox fleet recipe listName Risk Source Detached Lines Titlemotd-audit read built-in no 2 MOTD auditreboot-required read built-in no 1 Reboot required? Risk says whether a recipe only reads or makes a change. Lines is how many commands it runs. Your own recipes show org under Source.
quox fleet recipe show reboot-requiredname reboot-requiredtitle Reboot required?risk readsource built-in (read-only)detached noparams nonedescription Print the packages that need a reboot, or 'none'. Read only. Commands:test -f /var/run/reboot-required && cat /var/run/reboot-required.pkgs || echo none show prints every command line the recipe will run, so you can read it before it touches a server.
What just happened
Section titled “What just happened”Quox read the recipe list from your install. No command ran on any server, and nothing was changed.
quox fleet recipe run <name>runs a recipe on up to 25 hosts through the governed doorway, and a change waits for one approval. This guide does not cover running it yet.- Run a command on a server, with a human in the loop