mirror of
https://github.com/rclone/rclone.git
synced 2025-01-22 16:49:02 +08:00
parent
dbb21165d4
commit
7c7606a6cf
11
cmd/cmd.go
11
cmd/cmd.go
|
@ -429,11 +429,12 @@ func initConfig() {
|
||||||
fs.Fatalf(nil, "Failed to start remote control: %v", err)
|
fs.Fatalf(nil, "Failed to start remote control: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the metrics server if configured
|
// Start the metrics server if configured and not running the "rc" command
|
||||||
_, err = rcserver.MetricsStart(ctx, &rc.Opt)
|
if os.Args[1] != "rc" {
|
||||||
if err != nil {
|
_, err = rcserver.MetricsStart(ctx, &rc.Opt)
|
||||||
fs.Fatalf(nil, "Failed to start metrics server: %v", err)
|
if err != nil {
|
||||||
|
fs.Fatalf(nil, "Failed to start metrics server: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup CPU profiling if desired
|
// Setup CPU profiling if desired
|
||||||
|
|
Loading…
Reference in New Issue
Block a user