I started to learn Linux not long ago and have read some instructions about systemd and journald.
My question is: Is systemctl edit systemd-journald
a proper way to configure systemd-journald.service?
According to the man page of journald.conf.d, we can put configuration files in these directories:
/etc/systemd/journald.conf
/etc/systemd/journald.conf.d/*.conf
/run/systemd/journald.conf.d/*.conf
/usr/lib/systemd/journald.conf.d/*.conf
/usr/local/lib/systemd/*.conf.d/
I also noticed that systemctl edit systemd-journald
would create /etc/systemd/system/systemd-journald.service.d/override.conf
to override the defaults for systemd-journald.service which is not mentioned in the man page above.
Is it a proper way to configure systemd-journald.service? What are the differences between all these directories?