Rename service from matrix-maubot to matrix-bot-maubot

development
Julian-Samuel Gebühr 2 years ago
parent d5c82a5221
commit 6ed105b830

@ -1,5 +1,5 @@
--- ---
- set_fact: - set_fact:
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-maubot.service'] }}" matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-maubot.service'] }}"
when: matrix_bot_maubot_enabled|bool when: matrix_bot_maubot_enabled|bool

@ -95,19 +95,19 @@
pull: true pull: true
when: "matrix_bot_maubot_container_image_self_build|bool" when: "matrix_bot_maubot_container_image_self_build|bool"
- name: Ensure matrix-maubot.service installed - name: Ensure matrix-bot-maubot.service installed
template: template:
src: "{{ role_path }}/templates/systemd/matrix-maubot.service.j2" src: "{{ role_path }}/templates/systemd/matrix-bot-maubot.service.j2"
dest: "{{ matrix_systemd_path }}/matrix-maubot.service" dest: "{{ matrix_systemd_path }}/matrix-bot-maubot.service"
mode: 0644 mode: 0644
register: matrix_bot_maubot_systemd_service_result register: matrix_bot_maubot_systemd_service_result
- name: Ensure systemd reloaded after matrix-maubot.service installation - name: Ensure systemd reloaded after matrix-bot-maubot.service installation
service: service:
daemon_reload: true daemon_reload: true
when: "matrix_bot_maubot_systemd_service_result.changed|bool" when: "matrix_bot_maubot_systemd_service_result.changed|bool"
- name: Ensure matrix-maubot.service restarted, if necessary - name: Ensure matrix-bot-maubot.service restarted, if necessary
service: service:
name: "matrix-maubot.service" name: "matrix-bot-maubot.service"
state: restarted state: restarted

@ -35,7 +35,7 @@ ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-maubot 2>/dev/null || true' ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-maubot 2>/dev/null || true'
Restart=always Restart=always
RestartSec=30 RestartSec=30
SyslogIdentifier=matrix-maubot SyslogIdentifier=matrix-bot-maubot
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
Loading…
Cancel
Save