1
0
Fork 0

creating constants

This commit is contained in:
Joao Gilberto Magalhaes 2024-11-18 09:13:11 -06:00
parent 6df8e39bb1
commit 9d97d568ec
6 changed files with 34 additions and 24 deletions

View file

@ -25,7 +25,7 @@ def start():
old_haproxy = None
haproxy = DaemonizeHAProxy()
current_custom_config_files = haproxy.get_custom_config_files()
haproxy.haproxy("start")
haproxy.haproxy(DaemonizeHAProxy.HAPROXY_START)
haproxy.sleep()
certbot = Certbot(Consts.certs_certbot)
@ -47,7 +47,7 @@ def start():
old_haproxy = haproxy
haproxy = DaemonizeHAProxy()
current_custom_config_files = haproxy.get_custom_config_files()
haproxy.haproxy("reload")
haproxy.haproxy(DaemonizeHAProxy.HAPROXY_RELOAD)
old_haproxy.terminate()
except Exception as e: