mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-19 19:45:12 +00:00
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
This commit is contained in:
parent
ddca8d91fa
commit
22a4d49ed0
@ -401,7 +401,7 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if options.noRestart {
|
if innerProcess || options.noRestart {
|
||||||
syncthingMain(options)
|
syncthingMain(options)
|
||||||
} else {
|
} else {
|
||||||
monitorMain(options)
|
monitorMain(options)
|
||||||
|
@ -35,7 +35,6 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func monitorMain(runtimeOptions RuntimeOptions) {
|
func monitorMain(runtimeOptions RuntimeOptions) {
|
||||||
os.Setenv("STNORESTART", "yes")
|
|
||||||
os.Setenv("STMONITORED", "yes")
|
os.Setenv("STMONITORED", "yes")
|
||||||
l.SetPrefix("[monitor] ")
|
l.SetPrefix("[monitor] ")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user