17503: the deduplication report tool should not require the Arvados
[arvados.git] / lib / boot / cmd.go
index e0e2755220a1ec3bbdb8737067c54a579209f40e..963d16226b343341cdf3394af646097b498b9b1c 100644 (file)
@@ -108,6 +108,12 @@ func (bcmd bootCommand) run(ctx context.Context, prog string, args []string, std
                fmt.Fprintln(stdout, url)
                if *shutdown {
                        super.Stop()
+                       // Wait for children to exit. Don't report the
+                       // ensuing "context cancelled" error, though:
+                       // return nil to indicate successful startup.
+                       _ = super.Wait()
+                       fmt.Fprintln(stderr, "PASS - all services booted successfully")
+                       return nil
                }
        }
        // Wait for signal/crash + orderly shutdown