projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18790: Error out instead of retrying if server is too old.
[arvados.git]
/
lib
/
boot
/
cmd.go
diff --git
a/lib/boot/cmd.go
b/lib/boot/cmd.go
index e22ae7ad7ea7104c6471f07286009013a2247cfa..4b7284556eef20c17594ec5115238d47f308455b 100644
(file)
--- a/
lib/boot/cmd.go
+++ b/
lib/boot/cmd.go
@@
-15,6
+15,7
@@
import (
"git.arvados.org/arvados.git/lib/cmd"
"git.arvados.org/arvados.git/sdk/go/ctxlog"
"git.arvados.org/arvados.git/lib/cmd"
"git.arvados.org/arvados.git/sdk/go/ctxlog"
+ "github.com/coreos/go-systemd/daemon"
)
var Command cmd.Handler = bootCommand{}
)
var Command cmd.Handler = bootCommand{}
@@
-134,6
+135,9
@@
func (bcmd bootCommand) run(ctx context.Context, prog string, args []string, std
return nil
}
}
return nil
}
}
+ if _, err := daemon.SdNotify(false, "READY=1"); err != nil {
+ super.logger.WithError(err).Errorf("error notifying init daemon")
+ }
// Wait for signal/crash + orderly shutdown
return super.Wait()
}
// Wait for signal/crash + orderly shutdown
return super.Wait()
}