Automatic rollback when uncommitted for a long time


I have a software running on the OS that will call mender commit after running for 15 minutes. If the software fails to start, it would never commit.
I assume that Mender will not take action by itself. The idea is that I create a systemd timer that runs 3h after boot and checks if the update is committed. If not, it restarts the system and it will be in the old partition again.

Example use-cases:
OS update causes essential software to not work anymore


  1. Is this a good idea or is there something better than the systemd timer?
  2. Is fw_printenv the best way to check if the update has been committed yet?