I was trying to activate the journal on a persistent live USB stick.
In Debian one has to make the folder /var/log/journal and set
Storage=persistent
in /etc/systemd/journald.conf
I did it, but there is still no journal after rebooting in /var/log/journal
Am I missing something?
Thanks & cheers
Activating journal [Solved]
Re: Activating journal
The live system does not use systemd; it uses sysvinit.
Logs of the live boot process are under /var/log/live/. In addition, extra config information is stored under /live/config/.
Logs of the live boot process are under /var/log/live/. In addition, extra config information is stored under /live/config/.
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."
-- Richard Feynman
-- Richard Feynman
Re: Activating journal
Thanks, so I guess it works on the installed version like in debian then?
- dolphin_oracle
- Developer
- Posts: 19928
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Activating journal
Only if.you boot.in systemd mode. By default mx uses sysvinit. There is a systemd boot option in the grub menu under advanced options
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Activating journal
If you want to use systemd permanently (which I highly recommend), you have to, as already mentioned, open the file
/etc/default/grub
in this rowand run update-grub.
Then set up the journal as follows:
-the group
-the folder
-the rights
-the user
Good luck!
/etc/default/grub
in this row
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/lib/systemd/systemd"
Then set up the journal as follows:
-the group
Code: Select all
addgroup --system systemd-journal
Code: Select all
mkdir -p /var/log/journal
Code: Select all
chown root:systemd-journal /var/log/journal
Code: Select all
gpasswd -a lilith systemd-journal
- Head_on_a_Stick
- Posts: 919
- Joined: Sun Mar 17, 2019 3:37 pm
Re: Activating journal [Solved]
Sorry to interrupt you fine folks but just to note:
Conversely, if Storage=persistent is set in /etc/systemd/journald.conf then systemd will create /var/log/journal
Debian also already includes the systemd-journal group by default, I don't know if MX is different in this respect though.
You only have to do one or the other — the journal storage is set to "auto" by default and in that case persistent logging is determined by the presence of /var/log/journal
Conversely, if Storage=persistent is set in /etc/systemd/journald.conf then systemd will create /var/log/journal
Actually, systemd will automatically set the journal directory to the correct ownership so no need to do it manually.male wrote:-the rights
Debian also already includes the systemd-journal group by default, I don't know if MX is different in this respect though.
mod note: Signature removed, please read the forum rules