Haproxy-configuration-export-from-the-running-process


#1

down vote
favorite

how to export configuration file from the running process Haproxy?(System: Centos7)

the situation is that: I edit the file /etc/haproxy/haproxy.cfg,But it’s an wrong change,I use Vim replace more lines and then quit;

When i realize i’m wrong ,i reopen the file ,Oops! I can not back to the right version; What’s the worst is i haven’t make one bakcup of this file before.

there is only one way ,My Haproxy now is still running.I dare not reload the process. How to export the configuration from the running Process?(Not from the file above.dosen’t work)

Maybe dump from the memory ? It’s not the best way. Any Ideas?

Best regards


#2

I doubt this is possible. I have certainly no idea how.