From 26474d6e9ed886bfda49a13bd7d71a1310b627c3 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Tue, 22 Mar 2022 23:09:44 +0100 Subject: [PATCH] copr: automatically restart fedora-messaging It happened in the past, that the messaging service failed and therefore automatic DistGit PR rebuilds stopped working. https://pagure.io/copr/copr/issue/2008#comment-767290 --- .../fm-consumer@copr_messaging.service.d/50-restart.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 roles/copr/frontend/files/systemd/system/fm-consumer@copr_messaging.service.d/50-restart.conf diff --git a/roles/copr/frontend/files/systemd/system/fm-consumer@copr_messaging.service.d/50-restart.conf b/roles/copr/frontend/files/systemd/system/fm-consumer@copr_messaging.service.d/50-restart.conf new file mode 100644 index 0000000000..e98b03b3ea --- /dev/null +++ b/roles/copr/frontend/files/systemd/system/fm-consumer@copr_messaging.service.d/50-restart.conf @@ -0,0 +1,4 @@ +# When the service is killed or failed, start it again +[Service] +Restart = on-failure +RestartSec = 5s