From 9a00f57a5ba7ed431e6bac8d8b36518708503b4e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 2 Jul 2014 12:23:36 +0200 Subject: path: add new "systemd-path" utility for querying paths described in file-hierarchy(7) This new tool is based on "sd-path", a new (so far unexported) API for libsystemd, that can hopefully grow into a workable API covering /opt and more one day. --- man/file-hierarchy.xml | 20 +++++++-- man/systemd-path.xml | 111 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+), 4 deletions(-) create mode 100644 man/systemd-path.xml (limited to 'man') diff --git a/man/file-hierarchy.xml b/man/file-hierarchy.xml index 4d542caad4..a996bb69d2 100644 --- a/man/file-hierarchy.xml +++ b/man/file-hierarchy.xml @@ -62,6 +62,11 @@ subset of these specifications that defines more strictly the suggestions and restrictions systemd makes on the file system hierarchy. + + Many of the paths described here are queriable + with the + systemd-path1 + tool. @@ -296,8 +301,8 @@ /usr/lib/arch-id Location for placing - dynamic libraries, called $libdir. - The architecture identifier to use, is defined on $libdir. + The architecture identifier to use is defined on Multiarch Architecture Specifiers (Tuples) list. Legacy locations of $libdir are /usr/lib, @@ -309,7 +314,10 @@ $libdir for the primary architecture of the system, invoke: - # pkg-config --variable=libdir systemd + # pkg-config --variable=libdir systemd or + # systemd-path system-library-arch + + @@ -621,7 +629,10 @@ of these directories are also standardized (though more weakly) by the XDG - Base Directory Specification. + Base Directory Specification. Additional + locations for high-level user resources are defined by + xdg-user-dirs. @@ -952,6 +963,7 @@ systemd1, hier7, + systemd-path1, systemd-boot-generator8, sysctl.d5, tmpfiles.d5, diff --git a/man/systemd-path.xml b/man/systemd-path.xml new file mode 100644 index 0000000000..fc01d5edd4 --- /dev/null +++ b/man/systemd-path.xml @@ -0,0 +1,111 @@ + + + + + + + + + systemd-path + systemd + + + + Developer + Lennart + Poettering + lennart@poettering.net + + + + + + systemd-path + 1 + + + + systemd-path + List and query system and user paths + + + + + systemd-path OPTIONS NAME + + + + + Description + + systemd-path may be used to + query system and user paths. The tool makes many of + the paths described in + file-hierarchy7 + queriable. + + When invoked without arguments a list of known + paths and their current values is shown. When at least + one argument is passed the path with this is name is + queried and its value shown. The variables whose name + begins with search- don't refer to + individual paths, but instead a to a list of + colon-separated search paths, in their order of + precedence. + + + + Options + + The following options are understood: + + + + + + The printed paths are + suffixed by the specified + string. + + + + + + + + + + Exit status + + On success, 0 is returned, a non-zero failure + code otherwise. + + + + See Also + + systemd1, + file-hierarchy7 + + + + -- cgit v1.2.3-54-g00ecf