patchman
patchman copied to clipboard
Reboot pending duration indicator
Hi Marcus,
is there an easy way to tell how long a reboot has been pending on a machine? My use-case is that I want to give users some time to do the reboot when convenient for them but remind them after a couple of days or a week.
After studying the database schema and patchman-client code, I guess we could (for Ubuntu at least) transfer the ctime of /var/run/reboot-pending
to the server and save it in addition to the reboot flag. The UI could then flag the pending reboot with a warning after a configurable DAYS_WITHOUT_REBOOT
time.
Thanks, Michael
Hi Michael,
Happy to take a patch/PR for this if it's not too invasive.