mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
The config file watcher assumed a simple configuration where the existing configuration file is overwritten by a text editor. In practice this does not detect some more complex configuration change scenarios such as : * The configuration file is behind a symlink and the symlink is updated * The configuration file is behind a double symlink (k8s configmap update) * The configuration file is not updated but removed the re-created In order to fix these cases : * Watch the configuration file parent directory instead of the file itself, this lets us grab events event if the file was removed and a new file is used. * In addition to read/write event matching, watch for any change in the configuration file path. This handles the symlink case where the file itself hasn't changed but its location did v2: - apply gofmt |
||
|---|---|---|
| .. | ||
| client | ||
| clientman | ||
| conf | ||
| confenv | ||
| confwatcher | ||
| externalcmd | ||
| logger | ||
| metrics | ||
| path | ||
| pathman | ||
| pprof | ||
| serverplain | ||
| servertls | ||
| serverudpl | ||
| sourcertmp | ||
| sourcertsp | ||
| stats | ||
| syslog | ||