Activating journal  [Solved]

Post Reply
Message
Author
lilith
Posts: 38
Joined: Thu Mar 21, 2019 6:51 pm

Activating journal

#1 Post by lilith »

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

User avatar
BitJam
Developer
Posts: 2283
Joined: Sat Aug 22, 2009 11:36 pm

Re: Activating journal

#2 Post by BitJam »

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/.
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

lilith
Posts: 38
Joined: Thu Mar 21, 2019 6:51 pm

Re: Activating journal

#3 Post by lilith »

Thanks, so I guess it works on the installed version like in debian then?

User avatar
dolphin_oracle
Developer
Posts: 19928
Joined: Sun Dec 16, 2007 1:17 pm

Re: Activating journal

#4 Post by dolphin_oracle »

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.

lilith
Posts: 38
Joined: Thu Mar 21, 2019 6:51 pm

Re: Activating journal

#5 Post by lilith »

Ok, thanks!

male

Re: Activating journal

#6 Post by male »

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 row

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/lib/systemd/systemd"
and run update-grub.

Then set up the journal as follows:
-the group

Code: Select all

addgroup --system systemd-journal
-the folder

Code: Select all

mkdir -p /var/log/journal
-the rights

Code: Select all

chown root:systemd-journal /var/log/journal
-the user

Code: Select all

gpasswd -a lilith systemd-journal
Good luck! ;)

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Activating journal  [Solved]

#7 Post by Head_on_a_Stick »

Sorry to interrupt you fine folks but just to note:
lilith wrote: Thu Mar 21, 2019 7:00 pm In Debian one has to make the folder /var/log/journal and set

Storage=persistent

in /etc/systemd/journald.conf
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
male wrote:-the rights
Actually, systemd will automatically set the journal directory to the correct ownership so no need to do it manually.

Debian also already includes the systemd-journal group by default, I don't know if MX is different in this respect though.

:cat:
mod note: Signature removed, please read the forum rules

Post Reply

Return to “General”