Created
February 1, 2018 03:30
-
-
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...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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