patchman icon indicating copy to clipboard operation
patchman copied to clipboard

Reboot pending duration indicator

Open michaelweiser opened this issue 6 years ago • 1 comments

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

michaelweiser avatar Dec 17 '18 13:12 michaelweiser

Hi Michael,

Happy to take a patch/PR for this if it's not too invasive.

furlongm avatar Apr 20 '19 21:04 furlongm