Browse Source

Tweak string format, exit if config changes -- let monit and / or systemd restart if the config changes on disk out from under the running app ; will add save/exit button later to ensure that making changes via the config ui doesn't cause the app to restart after every change

master
KemoNine 2 years ago
parent
commit
1b5d77e07a
  1. 4
      cmd/gui/gui.go

4
cmd/gui/gui.go

@ -84,12 +84,12 @@ func main() {
return
}
pfConfig.Load(configFileProvider, toml.Parser())
log.Fatalf("Config file changed! Exiting!")
})
// Process command line flags
if err := pfConfig.Load(posflag.Provider(f, ".", pfConfig), nil); err != nil {
log.Fatalf("Error loading command line flags : %v", err)
log.Fatalf("Error loading command line flags : %s", err)
}
if !pfConfig.Bool(CLI_FLAG_CONFIG_ONLY) {

Loading…
Cancel
Save