mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
Merge pull request #484 from xnox/persistent-journal
journal: in persistent mode create /var/log/journal, with all parents.
This commit is contained in:
commit
2812dcba85
@ -943,7 +943,7 @@ static int system_journal_open(Server *s, bool flush_requested) {
|
||||
* the machine path */
|
||||
|
||||
if (s->storage == STORAGE_PERSISTENT)
|
||||
(void) mkdir("/var/log/journal/", 0755);
|
||||
(void) mkdir_p("/var/log/journal/", 0755);
|
||||
|
||||
fn = strjoina("/var/log/journal/", ids);
|
||||
(void) mkdir(fn, 0755);
|
||||
|
Loading…
Reference in New Issue
Block a user