diff options
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 3211773c27..eda5dcf7e9 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -990,7 +990,10 @@ static int system_journal_open(Server *s) { /* OK, we really need the runtime journal, so create * it if necessary. */ - (void) mkdir_parents(fn, 0755); + (void) mkdir("/run/log", 0755); + (void) mkdir("/run/log/journal", 0755); + (void) mkdir_parents(fn, 0750); + r = journal_file_open_reliably(fn, O_RDWR|O_CREAT, 0640, s->compress, false, &s->runtime_metrics, s->mmap, NULL, &s->runtime_journal); free(fn); |