services/device/device: updateall: kill instance only if running; recover if err

Changing updateall to only attempt to kill an instance if the instance is found
to be running.  If we then try Kill and it returns an error, we still check if
it's running or not (since the device manager force-kills the app) and recover.
Before, we used to leave the app not running and exit, which not only left the
updates in a partial state, but also left previously running instances dead.

Also, update the kill deadline to 10 seconds, and use it consistently between
the 'kill' and 'updateall' commands.

Change-Id: Ib129b94536739b385401d68f509e860a786d7650
4 files changed
tree: 8cae0b93fb50f1ef1f2af7b6b728383551c90c75
  1. cmd/
  2. envvar/
  3. examples/
  4. internal/
  5. lib/
  6. profiles/
  7. services/
  8. test/
  9. .gitignore
  10. AUTHORS
  11. CONTRIBUTORS
  12. LICENSE
  13. PATENTS
  14. README.md
  15. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.