journald.conf storage=volatile config support

Bug #1674794 reported by Renat
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Invalid
Undecided
Unassigned

Bug Description

Hi=) Another feature request:

I need to avoid writing logs to the sd card without disabling the journald. To achieve it I need to update /etc/systemd/journald.conf and set storage to volatile.

https://www.freedesktop.org/software/systemd/man/journald.conf.html

Revision history for this message
Kyle Nitzsche (knitzsche) wrote :

Has this been noticed? I believe the filer was told to create this bug. Thanks.

Revision history for this message
Renat (renat2017) wrote :

Hi=) Any updates on this, guys?

Revision history for this message
Oliver Grawert (ogra) wrote :

note that we currently default to auto, which means that if /var/log/journal has not been created manually by you, journald will never ever write to disk but only use a ringbuffer in ram. in the current setup journald should actually never write to SD, do you have any evidence that it does write ?

Revision history for this message
Renat (renat2017) wrote :

Hi, Oliver.

Yes. It writes to syslog.

-rw-r----- 1 syslog adm 126M May 5 14:02 syslog
-rw-r----- 1 syslog adm 664M May 5 06:25 syslog.1

Thanks,
Renat

Revision history for this message
Renat (renat2017) wrote :

But there is no `journal`.

Revision history for this message
Oliver Grawert (ogra) wrote :

journald never touches syslog, that is rsyslogd ...

for that bit i tried to land https://github.com/snapcore/core/pull/21 but that is "blocked - to discuss"

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

I'm closing this issue since it sounds like journald is actually doing the right thing.

Oliver also created a forum topic for us to sort out the remaining issues and I'm following up there:

https://forum.snapcraft.io/t/allow-disabling-system-services-on-ubuntu-core/531/2

Changed in snappy:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.