Skip to content

Commit

Permalink
systemd triggered even if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jun 28, 2022
1 parent f0bb396 commit 8ef1614
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
name: galaxy.service
state: started
scope: "{{ galaxy_systemd_root | ternary(omit, 'user') }}"
when: "galaxy_systemd_mode == 'gravity'"
when: "galaxy_systemd_mode == 'gravity' and galaxy_manage_systemd"
listen: "start galaxy"

- name: galaxy mule restart
systemd:
name: galaxy.service
state: restarted
scope: "{{ galaxy_systemd_root | ternary(omit, 'user') }}"
when: "galaxy_systemd_mode == 'mule'"
when: "galaxy_systemd_mode == 'mule' and galaxy_manage_systemd"
listen: "restart galaxy"

- name: galaxy gravity restart
command: "{{ galaxy_venv_dir }}/bin/galaxyctl graceful"
environment:
GRAVITY_STATE_DIR: "{{ galaxy_gravity_state_dir }}"
when: "galaxy_systemd_mode == 'gravity'"
when: "galaxy_systemd_mode == 'gravity' and galaxy_manage_systemd"
listen: "restart galaxy"

- name: galaxyctl update
Expand Down

0 comments on commit 8ef1614

Please sign in to comment.