I would like HAProxy on my Ubuntu 14.04 to restart each time I SCP a new HAProxy config file. What is the easiest/cleanest way to achieve this?
Asked
Active
Viewed 1,429 times
-2
-
What have you considered so far, and why did you consider it insufficient? – womble Nov 05 '15 at 07:56
1 Answers
4
Use inotify to monitor the file change and have it execute a script or command that does the haproxy config reload or a full restart.
https://superuser.com/questions/181517/how-to-execute-a-command-whenever-a-file-changes
https://stackoverflow.com/questions/12264238/restart-process-on-file-change-in-linux