mirror of
https://github.com/luzifer-ansible/journalbeat.git
synced 2024-12-22 17:31:16 +00:00
Fix: Programmatically work around bricked pending-queue
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
00a7f24448
commit
e604ab03f9
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue