Re: [systemd-devel] Query currently active journald configuration option
On Di, 10.11.20 22:22, Andrei Borzenkov (arvidj...@gmail.com) wrote: > > Fetching files from /lib or /usr/lib? What precisely do you mean? > > _CONF_PATHS_SPLIT_USR_NULSTR > _CONF_PATHS_SPLIT_USR > > > For such build-time params we expose systemd.pc as pkg-config file, > > which has various paths as variables. > > Now explain it to user who barely knows what command line is and most > likely does not even have development environment installed. Why would such a user care about CONF_PATHS_SPLIT_USR? > Besides, what pkg-config variable exactly controls location of > configuration files? For all I can tell such variable does not exist. Whch configuration files precisely? Lennart -- Lennart Poettering, Berlin ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Query currently active journald configuration option
09.11.2020 19:09, Lennart Poettering пишет: > On Mo, 09.11.20 08:48, Andrei Borzenkov (arvidj...@gmail.com) wrote: > >> Is it possible to query configuration options in effect in running >> journald instance? > > Besides the brief log output it does itself, no there's currently no > way. > > We never had that because journald can't use D-Bus, because D-Bus > itself is a client to journald. However, we recently added support for > a Varlink interface, which requires no broker daemon, and hence just > works. It would make a ton of sense to extend that varlink IPC > interface to expose some information about configuration, its state > and statistics. Happy to review/merge a patch for that. > >> >> Background - when user asks question about journald, the first >> information is current settings (like whether persistence is enabled or >> not). It needs fetching files from multiple places which varies between >> distributions (/lib vs /usr/lib). Not really user friendly and not >> possible to do with simple command. > > Fetching files from /lib or /usr/lib? What precisely do you mean? > _CONF_PATHS_SPLIT_USR_NULSTR _CONF_PATHS_SPLIT_USR > For such build-time params we expose systemd.pc as pkg-config file, > which has various paths as variables. > Now explain it to user who barely knows what command line is and most likely does not even have development environment installed. Besides, what pkg-config variable exactly controls location of configuration files? For all I can tell such variable does not exist. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Query currently active journald configuration option
On Mo, 09.11.20 08:48, Andrei Borzenkov (arvidj...@gmail.com) wrote: > Is it possible to query configuration options in effect in running > journald instance? Besides the brief log output it does itself, no there's currently no way. We never had that because journald can't use D-Bus, because D-Bus itself is a client to journald. However, we recently added support for a Varlink interface, which requires no broker daemon, and hence just works. It would make a ton of sense to extend that varlink IPC interface to expose some information about configuration, its state and statistics. Happy to review/merge a patch for that. > > Background - when user asks question about journald, the first > information is current settings (like whether persistence is enabled or > not). It needs fetching files from multiple places which varies between > distributions (/lib vs /usr/lib). Not really user friendly and not > possible to do with simple command. Fetching files from /lib or /usr/lib? What precisely do you mean? For such build-time params we expose systemd.pc as pkg-config file, which has various paths as variables. Lennart -- Lennart Poettering, Berlin ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Query currently active journald configuration option
good morning dear Andrei Borzenkov; This indicates that I should go file by file validating the /lib directory vs /usr/lib. El lun., 9 nov. 2020 a las 1:48, Andrei Borzenkov () escribió: > Is it possible to query configuration options in effect in running > journald instance? > > Background - when user asks question about journald, the first > information is current settings (like whether persistence is enabled or > not). It needs fetching files from multiple places which varies between > distributions (/lib vs /usr/lib). Not really user friendly and not > possible to do with simple command. > ___ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/systemd-devel > ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel