fedora-messaging has an annoying bug where consumers get stuck allegedly working fine but actually not handling any messages: https://github.com/fedora-infra/fedora-messaging/issues/208 to deal with this on our openQA servers, just have the dispatcher role install a cron job which restarts all the services nightly. Strictly speaking this shouldn't really be part of a specific role like this, but this is the easiest way to do it and it's not really that "wrong". Signed-off-by: Adam Williamson <awilliam@redhat.com>
6 lines
195 B
Bash
6 lines
195 B
Bash
#!/bin/sh
|
|
|
|
# restart all fedora messaging consumer services in case they've got stuck:
|
|
# https://github.com/fedora-infra/fedora-messaging/issues/208
|
|
|
|
/usr/bin/systemctl try-restart fm-consumer@*
|