veyron,veyron2: rename runtime.Shutdown to runtime.Cleanup.
Context:
https://docs.google.com/a/google.com/document/d/1Sfq1ZEEPtxMFR2Wj6SFNMlNNXZ9xnuz-Cep73RXmBwI/edit
Change-Id: I20b89e7acf70f97c3216bc155e7afcce0cc5db0a
diff --git a/services/mgmt/application/applicationd/main.go b/services/mgmt/application/applicationd/main.go
index d5e0a33..38e3177 100644
--- a/services/mgmt/application/applicationd/main.go
+++ b/services/mgmt/application/applicationd/main.go
@@ -23,7 +23,7 @@
vlog.Fatalf("Specify a store using --store=<name>")
}
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
server, err := runtime.NewServer()
if err != nil {
vlog.Fatalf("NewServer() failed: %v", err)
diff --git a/services/mgmt/application/impl/impl_test.go b/services/mgmt/application/impl/impl_test.go
index 76a0fd6..3321f58 100644
--- a/services/mgmt/application/impl/impl_test.go
+++ b/services/mgmt/application/impl/impl_test.go
@@ -17,7 +17,7 @@
func TestInterface(t *testing.T) {
runtime := rt.Init()
ctx := runtime.NewContext()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
// Setup and start the application repository server.
server, err := runtime.NewServer()
diff --git a/services/mgmt/binary/binaryd/main.go b/services/mgmt/binary/binaryd/main.go
index 55b4d6a..bb59019 100644
--- a/services/mgmt/binary/binaryd/main.go
+++ b/services/mgmt/binary/binaryd/main.go
@@ -61,7 +61,7 @@
}
vlog.Infof("Binary repository rooted at %v", root)
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
server, err := runtime.NewServer()
if err != nil {
vlog.Errorf("NewServer() failed: %v", err)
diff --git a/services/mgmt/node/impl/impl_test.go b/services/mgmt/node/impl/impl_test.go
index 1e62541..8a4cd47 100644
--- a/services/mgmt/node/impl/impl_test.go
+++ b/services/mgmt/node/impl/impl_test.go
@@ -219,7 +219,7 @@
}
case "parent":
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
// Set up a mock binary repository, a mock application repository, and a node manager.
_, crCleanup := startBinaryRepository()
defer crCleanup()
@@ -232,7 +232,7 @@
blackbox.WaitForEOFOnStdin()
case "child":
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
// Set up a node manager.
name, nmCleanup := startNodeManager()
defer nmCleanup()
diff --git a/services/mgmt/node/noded/main.go b/services/mgmt/node/noded/main.go
index af7c5d2..b993371 100644
--- a/services/mgmt/node/noded/main.go
+++ b/services/mgmt/node/noded/main.go
@@ -28,7 +28,7 @@
vlog.Fatalf("Specify the node manager origin as environment variable %s=<name>", impl.OriginEnv)
}
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
server, err := runtime.NewServer()
if err != nil {
vlog.Fatalf("NewServer() failed: %v", err)
diff --git a/services/mgmt/profile/impl/impl_test.go b/services/mgmt/profile/impl/impl_test.go
index 6822260..bb52ef9 100644
--- a/services/mgmt/profile/impl/impl_test.go
+++ b/services/mgmt/profile/impl/impl_test.go
@@ -26,7 +26,7 @@
// the Profile interface.
func TestInterface(t *testing.T) {
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
ctx := runtime.NewContext()
diff --git a/services/mgmt/profile/profiled/main.go b/services/mgmt/profile/profiled/main.go
index cc33f62..93c5b68 100644
--- a/services/mgmt/profile/profiled/main.go
+++ b/services/mgmt/profile/profiled/main.go
@@ -23,7 +23,7 @@
vlog.Fatalf("Specify a store using --store=<name>")
}
runtime := rt.Init()
- defer runtime.Shutdown()
+ defer runtime.Cleanup()
server, err := runtime.NewServer()
if err != nil {
vlog.Fatalf("NewServer() failed: %v", err)
diff --git a/services/mgmt/root/rootd/main.go b/services/mgmt/root/rootd/main.go
index ae4b33a..c20a76a 100644
--- a/services/mgmt/root/rootd/main.go
+++ b/services/mgmt/root/rootd/main.go
@@ -10,7 +10,7 @@
func main() {
r := rt.Init()
- defer r.Shutdown()
+ defer r.Cleanup()
server, err := r.NewServer()
if err != nil {
vlog.Errorf("NewServer() failed: %v", err)