When I launch a program via envconsul , and from other terminal I do a consul kv put … the envconsul seems to be sensible to any change and send a signal to the child process or program ( apparently SIGHUP). Is there a way to avoid restart this way?
Envconsul will restart its managed application whenever one of its watched KV values change. You can limit this by restricting what it watches (be more specific with your prefix path) but there is no means to prevent it from restarting the process. The design is for it to restart the process when the KV values, and thus the environment variables, change so the process can pick them up as you can’t change the environment variable for a running process.
Thank you for feedback!