Skip to content

Instantly share code, notes, and snippets.

@jason-idk
Created February 1, 2018 03:30
Show Gist options
  • Save jason-idk/ac260760ce3314334e62afee5aa7e209 to your computer and use it in GitHub Desktop.
Save jason-idk/ac260760ce3314334e62afee5aa7e209 to your computer and use it in GitHub Desktop.
We all know that journalctl can be a good thing if you want it to be...
Enabling a persistent journal can be done by using the following steps:
1. Create the directory /var/log/journal.
[root@demo ~]# mkdir /var/log/journal
2. Set the group ownership of the new directory to systemd-journal, and the permissions to 2755.
[root@demo ~]# chown root:systemd-journal /var/log/journal
[root@demo ~]# chmod 2755 /var/log/journal
3. Inform systemd-journald that the new location should be used by sending a USR1 signal to it. A reboot will also suffice.
[root@demo ~]# killall -USR1 systemd-journald
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment