No longer enforce version matching between daemon and cli (#4271)
* No longer check version matching between daemon and cli * Add Log Service Handler and report if the daemon is running in background mode
This commit is contained in:
8 files changed
+198
-66
No files matched your search
@@ -201,6 +201,7 @@ func (c *StartCommand) Run(args []string) int {
|
||||
LogWriter: io.MultiWriter(writers...),
|
||||
LogFileName: logFileName,
|
||||
DotDirectory: dotDir,
|
||||
RunningInBackground: os.Getenv(backgroundEnvName) == backgroundEnvVal,
|
||||
}
|
||||
|
||||
srv, err := daemon.New(ctx, cfg)
|
||||
|
||||
@@ -144,6 +144,9 @@ func printStatusTable(status *daemon.StatusResult) string {
|
||||
if len(status.LogLocation) > 0 {
|
||||
nonAttributeMap["Log Location"] = status.LogLocation
|
||||
}
|
||||
if len(status.Version) > 0 {
|
||||
nonAttributeMap["Version"] = status.Version
|
||||
}
|
||||
if status.Uptime > 0 {
|
||||
nonAttributeMap["Uptime"] = status.Uptime.Round(time.Second)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user