1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

rc: ensure rclone fails to start up if the --rc port is in use already

This commit is contained in:
Nick Craig-Wood
2018-11-01 17:20:04 +00:00
parent 0b80d1481a
commit b961e07c57
4 changed files with 44 additions and 28 deletions

View File

@@ -353,7 +353,10 @@ func initConfig() {
fs.Debugf("rclone", "Version %q starting with parameters %q", fs.Version, os.Args)
// Start the remote control server if configured
rcserver.Start(&rcflags.Opt)
_, err = rcserver.Start(&rcflags.Opt)
if err != nil {
log.Fatalf("Failed to start remote control: %v", err)
}
// Setup CPU profiling if desired
if *cpuProfile != "" {