Auto updater APIs (#1523)

* APIs for querying and executing an update in place.

For #924

* Use the process pid to query systemd for status

* Use parent pid and invocation ID to guess if running from systemd

* Stream cmd output to client + report errors

* Update comment to refer to INVOCATION_ID
This commit is contained in:
Gabe Kangas
2021-11-30 13:15:18 -08:00
committed by GitHub
parent 71abb3cfb5
commit 83eb9229ad
6 changed files with 229 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
//go:build enable_updates
// +build enable_updates
package config
func init() {
EnableAutoUpdate = true
}