Browse Source

cmd/syncthing: Handle -logfile again (fixes #3931)

The monitor process should not set STNORESTART as this indicates the
intention from the user. Setting STMONITORED is enough, as this tells
the next Syncthing instance that it is running under the monitor
process.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3932
Jakob Borg 9 years ago
parent
commit
22a4d49ed0
2 changed files with 1 additions and 2 deletions
  1. 1 1
      cmd/syncthing/main.go
  2. 0 1
      cmd/syncthing/monitor.go

+ 1 - 1
cmd/syncthing/main.go

@@ -401,7 +401,7 @@ func main() {
 		return
 	}
 
-	if options.noRestart {
+	if innerProcess || options.noRestart {
 		syncthingMain(options)
 	} else {
 		monitorMain(options)

+ 0 - 1
cmd/syncthing/monitor.go

@@ -35,7 +35,6 @@ const (
 )
 
 func monitorMain(runtimeOptions RuntimeOptions) {
-	os.Setenv("STNORESTART", "yes")
 	os.Setenv("STMONITORED", "yes")
 	l.SetPrefix("[monitor] ")