Fix: Programmatically work around bricked pending-queue

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-13 19:18:34 +01:00
parent 00a7f24448
commit e604ab03f9
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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