mediamtx/internal
Florian Vallée f5dc53e0f2 improve config file watcher to support k8s configmap reloads
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
2021-01-13 21:57:09 +01:00
..
client move RTCP receivers into gortsplib 2021-01-06 22:31:08 +01:00
clientman new parameter readBufferCount 2021-01-10 12:55:53 +01:00
conf new parameter readBufferCount 2021-01-10 12:55:53 +01:00
confenv new parameter readBufferCount 2021-01-10 12:55:53 +01:00
confwatcher improve config file watcher to support k8s configmap reloads 2021-01-13 21:57:09 +01:00
externalcmd cleanup 2020-11-21 13:35:33 +01:00
logger update linter settings 2020-12-08 12:37:31 +01:00
metrics implement log levels; print requests and responses when log level is "debug" (#116) 2020-12-08 12:21:06 +01:00
path new parameter readBufferCount 2021-01-10 12:55:53 +01:00
pathman new parameter readBufferCount 2021-01-10 12:55:53 +01:00
pprof implement log levels; print requests and responses when log level is "debug" (#116) 2020-12-08 12:21:06 +01:00
serverplain new parameter readBufferCount 2021-01-10 12:55:53 +01:00
servertls new parameter readBufferCount 2021-01-10 12:55:53 +01:00
serverudpl move UDP support into gortsplib 2021-01-06 12:40:18 +01:00
sourcertmp move UDP support into gortsplib 2021-01-06 12:40:18 +01:00
sourcertsp new parameter readBufferCount 2021-01-10 12:55:53 +01:00
stats implement RTSPS (#77) 2020-12-13 23:51:44 +01:00
syslog fix execution of external commands with quotes on Windows (#113) 2020-11-08 23:12:43 +01:00