Retry restarting systemd-journald

It is possible that systemd-journald fails to properly restart on
the first attempt due to assertion errors similar to the following:

  Assertion 'f' failed at src/journal/journal-file.c:132,
  function journal_file_close(). Aborting.

However, the service eventually starts with no problems, so we can
simply retry which will let it restart cleanly on the next attempt.

Change-Id: Ic65466b0d339c5a1b476e91483beca248ed0a02d
This commit is contained in:
Mohammed Naser 2018-05-02 20:58:15 +00:00
parent 9c4bdb962b
commit 66ed618bce
1 changed files with 4 additions and 0 deletions

View File

@ -24,3 +24,7 @@
name: systemd-journald
state: restarted
enabled: yes
register: _restart
until: _restart | success
retries: 5
delay: 2