summaryrefslogtreecommitdiffstats
path: root/man/sd_path_lookup.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-24 16:04:50 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-27 20:12:45 +0100
commit9c5bb2033db0c0927593b929ff760b69295a9f70 (patch)
tree0580eaaf44600f2562bdabd53c8ee981879fef95 /man/sd_path_lookup.xml
parentsd-path: simplify implementation of sd_path_lookup*() (diff)
downloadsystemd-9c5bb2033db0c0927593b929ff760b69295a9f70.tar.xz
systemd-9c5bb2033db0c0927593b929ff760b69295a9f70.zip
path: show various systemd directories and search paths too
So far we had various ad hoc APIs to query search paths: systemd-analyze unit-paths, lookup_paths_log(), the pkgconfig file, debug logs emitted by systemd-analyze cat-config. But answering a simple question "what is the search path for tmpfiles, sysusers, .network files, ..." is surprisingly hard. I think we should have an api that makes it easy to query this. Pkgconfig is not bad, but it is primarily a development tool, so it's not available in many context. Also it can't provide support for paths which are influenced by environment variables, and I'd like to be able to answer the question "what is the search path for ..., assuming that VAR_FOO=... is set?". Extending sd-path to support more of our internal paths seems to be most flexible solution. We already have systemd-path which provides a nice way to query, and we can add stuff like optional descriptions later on. We we essentially get a nice programmatic and commmandline apis for the price of one.
Diffstat (limited to 'man/sd_path_lookup.xml')
-rw-r--r--man/sd_path_lookup.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/man/sd_path_lookup.xml b/man/sd_path_lookup.xml
index c14ccf0e8c..81812bc003 100644
--- a/man/sd_path_lookup.xml
+++ b/man/sd_path_lookup.xml
@@ -75,6 +75,29 @@
<constant>SD_PATH_SEARCH_CONFIGURATION_FACTORY</constant>,
<constant>SD_PATH_SEARCH_STATE_FACTORY</constant>,
<constant>SD_PATH_SEARCH_CONFIGURATION</constant>,
+
+ <constant>SD_PATH_SYSTEMD_UTIL_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_SYSTEM_UNIT_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_SYSTEM_PRESET_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_USER_UNIT_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_USER_PRESET_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_SYSTEM_CONF_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_USER_CONF_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_SYSTEM_UNIT_PATH</constant>,
+ <constant>SD_PATH_SYSTEMD_USER_UNIT_PATH</constant>,
+ <constant>SD_PATH_SYSTEMD_SYSTEM_GENERATOR_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_USER_GENERATOR_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_SYSTEM_GENERATOR_PATH</constant>,
+ <constant>SD_PATH_SYSTEMD_USER_GENERATOR_PATH</constant>,
+ <constant>SD_PATH_SYSTEMD_SLEEP_DIR</constant>,
+ <constant>SD_PATH_SYSTEMD_SHUTDOWN_DIR</constant>,
+
+ <constant>SD_PATH_TMPFILES_DIR</constant>,
+ <constant>SD_PATH_SYSUSERS_DIR</constant>,
+ <constant>SD_PATH_SYSCTL_DIR</constant>,
+ <constant>SD_PATH_BINFMT_DIR</constant>,
+ <constant>SD_PATH_MODULES_LOAD_DIR</constant>,
+ <constant>SD_PATH_CATALOG_DIR</constant>,
};</funcsynopsisinfo>
<funcprototype>