Re: [systemd-devel] journal: question regarding retention options by priority/identifier/unit

2024-08-12 Thread Lukáš Nykrýn
Hello! I only briefly tested this, but I believe you can use journal namespaces. I tweaked the Service stanza in systemd-journald-audit.socket to "systemd-journald@audit.service" restarted everything and now I have audit messages separated in /var/log/journal/4339da6539564b07a62c1604525309ff.audit

Re: [systemd-devel] journal: question regarding retention options by priority/identifier/unit

2024-08-12 Thread SCOTT FIELDS
Good idea! But...that doesn't address how to have a size/date retention that's specific to that entry. But the trickiest issue is how to have specific audit types (again, namely syslog 'authpriv') have the same kind of namespace assignment. This would be like what you would filter via '-t' or

[systemd-devel] Trying to resolve user level systemd unit journal not writing to local user journal

2024-08-12 Thread SCOTT FIELDS
OS = Fedora 39 Systemd version = 254.13 I have an application running via a user level system unit file. The UID is > 999. I'm expecting the application journal entries to be a local entry in $XDG_STATE_HOME/log, but it's using the user level journal in /var/log/journal. FYI, I'm not expressly

[systemd-devel] CREDENTIALS_DIRECTORY vs %d

2024-08-12 Thread Gesh
systemd.exec(5) reads: > In order to reference the path a credential may be read from within a > ExecStart= command line use "${CREDENTIALS_DIRECTORY}/mycred", e.g. > "ExecStart=cat ${CREDENTIALS_DIRECTORY}/mycred". In order to reference the > path a credential may be read from within a Environment

[systemd-devel] Using credential directives in user units always exits 243/CREDENTIALS

2024-08-12 Thread Gesh
Hi, I've been unsuccessfully trying to migrate my user units to use credentials for storing gpg passphrases to encrypt stored state. I've reduced this to the following MWE: > [Service] > # generated by > # printf %s test | systemd-creds encrypt --user --name=test-password -p - - > SetCredentialEncr

Re: [systemd-devel] CREDENTIALS_DIRECTORY vs %d

2024-08-12 Thread Greg Oliver
On Mon, Aug 12, 2024 at 5:28 PM Gesh wrote: > systemd.exec(5) reads: > > In order to reference the path a credential may be read from within a > > ExecStart= command line use "${CREDENTIALS_DIRECTORY}/mycred", e.g. > > "ExecStart=cat ${CREDENTIALS_DIRECTORY}/mycred". In order to reference > the >

Re: [systemd-devel] Trying to resolve user level systemd unit journal not writing to local user journal

2024-08-12 Thread Andrei Borzenkov
On 12.08.2024 22:36, SCOTT FIELDS wrote: OS = Fedora 39 Systemd version = 254.13 I have an application running via a user level system unit file. The UID is > 999. I'm expecting the application journal entries to be a local entry in $XDG_STATE_HOME/log, but it's using the user level journal i

[systemd-devel] Mechanism to know when all services are finished preparing for resume

2024-08-12 Thread Eric Smith (QUIC)
Hi systemd-devel, When using the systemd-logind design for suspend, systemd services can receive the PrepareForSleep DBus signal from systemd-logind with the Boolean argument false to know when the system is exiting from suspend - https://systemd.io/INHIBITOR_LOCKS/ We want to be able to measu