mirror of https://github.com/Aidaho12/haproxy-wi
Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
35bd366f55 | |
![]() |
d7c07b75b1 | |
![]() |
b25ce00e12 | |
![]() |
90050a9bd0 | |
![]() |
6b7cfd1e86 |
|
@ -56,8 +56,8 @@ def get_action_command(service: str, action: str, server_id: int) -> str:
|
|||
if is_docker == '1':
|
||||
container_name = sql.get_setting(f'{service}_container_name')
|
||||
if action == 'reload':
|
||||
action = 'kill -S HUP'
|
||||
commands = f"sudo docker {action} {container_name}"
|
||||
action = 'kill -s HUP'
|
||||
commands = f"sudo docker {action} {container_name} > /dev/null"
|
||||
else:
|
||||
service_name = service_common.get_correct_service_name(service, server_id)
|
||||
commands = f"sudo systemctl {action} {service_name}"
|
||||
|
|
Loading…
Reference in New Issue