Skip to content

Commit

Permalink
Merge pull request #15 from ehh-why-its-so-hard/fix-restart-logic
Browse files Browse the repository at this point in the history
feat: do not restart the network when flag is set to off
  • Loading branch information
daniel1302 authored Oct 26, 2024
2 parents 4c65413 + 855805e commit ebb3e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roles/vega_core/handlers/main.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Restart vegavisor
ansible.builtin.service:
state: "restarted"
state: "{{- 'restarted' if vega_core_run_network else 'stopped' -}}"
daemon_reload: true

name: vegavisor
Expand All @@ -10,7 +10,7 @@

- name: Restart blockexplorer
ansible.builtin.service:
state: "restarted"
state: "{{- 'restarted' if vega_core_run_network else 'stopped' -}}"
daemon_reload: true
name: blockexplorer
listen: "Restart blockexplorer"
Expand Down
2 changes: 1 addition & 1 deletion roles/vega_core/tasks/restart_network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
mode: "0644"
register: visor_state
notify:
- "Start vegavisor"
- "Restart vegavisor"

- name: Decide whether restart explorer(when the vega_core_run_network flag changed)
ansible.builtin.copy:
Expand Down

0 comments on commit ebb3e4c

Please sign in to comment.