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

This commit is contained in:
Julian-Samuel Gebühr 2022-06-24 17:54:57 +02:00
parent d5c82a5221
commit 6ed105b830
3 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
---
- 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

View File

@ -95,19 +95,19 @@
pull: true
when: "matrix_bot_maubot_container_image_self_build|bool"
- name: Ensure matrix-maubot.service installed
- name: Ensure matrix-bot-maubot.service installed
template:
src: "{{ role_path }}/templates/systemd/matrix-maubot.service.j2"
dest: "{{ matrix_systemd_path }}/matrix-maubot.service"
src: "{{ role_path }}/templates/systemd/matrix-bot-maubot.service.j2"
dest: "{{ matrix_systemd_path }}/matrix-bot-maubot.service"
mode: 0644
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:
daemon_reload: true
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:
name: "matrix-maubot.service"
name: "matrix-bot-maubot.service"
state: restarted

View File

@ -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'
Restart=always
RestartSec=30
SyslogIdentifier=matrix-maubot
SyslogIdentifier=matrix-bot-maubot
[Install]
WantedBy=multi-user.target