Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makhoninvit authored and Vitaliy Makhonin committed Aug 13, 2024
1 parent 2cc18ac commit e7bd97c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions roles/validator_bootstrap/tasks/validator.service.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
- name: Remove validator systemd service unit file
file:
path: "/etc/systemd/system/{{ validator_binary }}.service"
path: "/etc/systemd/system/validator.service"
state: absent
tags:
- validator.service

- name: Create validator service
template:
src: validator.service.j2
dest: "/lib/systemd/system/{{ validator_binary }}.service"
dest: "/lib/systemd/system/validator.service"
mode: 0644
owner: root
group: root
Expand All @@ -34,14 +34,14 @@

- name: Enable validator service
systemd:
name: "{{ validator_binary }}"
name: "validator"
enabled: yes
tags:
- validator.service

- name: Start validator service
systemd:
name: "{{ validator_binary }}"
name: "validator"
state: "{{ item }}"
with_items:
- "started"
Expand Down
2 changes: 1 addition & 1 deletion roles/validator_bootstrap/templates/validator.logrotate.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
compress
missingok
postrotate
systemctl kill -s USR1 {{ validator_binary }}.service
systemctl kill -s USR1 validator.service
endscript
}

2 changes: 1 addition & 1 deletion roles/validator_remove/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
- "{{ mount_base_path }}"
- "{{ validator_home }}"
- "{{ swap_file.stdout }}"
- "/etc/systemd/system/{{ validator_binary }}.service"
- "/etc/systemd/system/validator.service"
- "/etc/default/validator-env"
- "{{ sv_manager_config_path }}"
tags:
Expand Down

0 comments on commit e7bd97c

Please sign in to comment.