Added ability for OneService to monitor local.conf for changes and automatically reload

This commit is contained in:
Joseph Henry 2018-09-11 16:55:46 -07:00
parent 3dd9b1aa9b
commit 7b87e9c0cb
2 changed files with 117 additions and 92 deletions

View file

@ -275,6 +275,11 @@
*/
#define ZT_PING_CHECK_INVERVAL 5000
/**
* How often the local.conf file is checked for changes
*/
#define ZT_LOCAL_CONF_FILE_CHECK_INTERVAL 10000
/**
* How frequently to check for changes to the system's network interfaces. When
* the service decides to use this constant it's because we want to react more