Create /var/log/journal

Its existence will ensure journal logs are persistent. We did this
on the overcloud some time ago but the undercloud was missed.

Change-Id: Iefd5b305af729bf7a0bdae16214ce59f436d2d95
This commit is contained in:
Derek Higgins 2015-09-11 09:44:13 +01:00
parent 21d8028728
commit e05b30947c
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -eu
set -o pipefail
# Enable persistent logging for the systemd journal
mkdir -p /var/log/journal
# Restart the journald service
systemctl restart systemd-journald.service