You are not logged in.

#1 2015-07-19 08:49:18

flytwokites
Member
Registered: 2008-12-04
Posts: 14

python2-systemd: systemd.journal.Reader can not read runtime journal

The python2-systemd package seems broken on current version systemd-222/python2-systemd-221

I store my journal in runtime (set Storage=volatile in /etc/systemd/journald.conf), but python2-systemd can not read it, why?

from systemd import journal
r = journal.Reader(flags=journal.RUNTIME_ONLY)
print r.get_usage()

I tested this script on centos 7 and it works.

Offline

Board footer

Powered by FluxBB