From e604ab03f9f16c718706f5363b2e8b468c36406c Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 13 Jan 2018 19:18:34 +0100 Subject: [PATCH] Fix: Programmatically work around bricked pending-queue Signed-off-by: Knut Ahlers --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 7b59a0d..81f2699 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -41,10 +41,14 @@ Requires=network-online.target [Service] + # Workaround: This file gets corrupted on unclean exit and then bricks the process + ExecStartPre=-/bin/rm /var/lib/journalbeat/.journalbeat-pending-queue + ExecStart=/usr/local/bin/journalbeat \ -c /etc/journalbeat.yaml \ -path.home /var/lib/journalbeat \ -path.logs /var/log + Restart=on-failure RestartSec=5 WorkingDirectory=/var/lib/journalbeat