From: Lennart Poettering Date: Mon, 29 Apr 2013 23:36:49 +0000 (-0300) Subject: man: we need to be more careful with the unit search paths we document X-Git-Tag: v203~56 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=00d1818bb7fbc01086cc956fdb1fcbc8fb90482b man: we need to be more careful with the unit search paths we document We generally document the suggested paths, not the paths possible in weird, non-standard setups. We do this in order to not confuse administrators/users unnecessarily and to push people to install things into the same directories on all distributions. We are PID 1 after all, the really basic building block of the OS. Unlike for an app there's very little benefit in being entirely relocatable. --- diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 26c16deb9..68f02fcb6 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -245,7 +245,7 @@ - Unit load path + Unit Load Path Unit files are loaded from a set of paths determined during compilation, described in the two @@ -254,7 +254,7 @@ lower in the hierarchy, thus allowing overrides. - When systemd is running in session mode + When systemd is running in user mode () and the variable $SYSTEMD_UNIT_PATH is set, this contents of this variable overrides the unit load @@ -278,14 +278,11 @@ /run/systemd/generator.early - Generated units - - - &SYSTEM_CONFIG_UNIT_PATH; - Local configuration + Generated units (early) /etc/systemd/system + Local configuration /run/systemd/systemd @@ -293,26 +290,19 @@ /run/systemd/generator - Generated units + Generated units (middle) /usr/local/lib/systemd/system Units for local packages - - &systemunitdir; - Systemd package configuration - /usr/lib/systemd/system - Units for installed packages - - - /lib/systemd/system + Units for installed packages /run/systemd/generator.late - Generated units + Generated units (late) @@ -335,14 +325,11 @@ /tmp/systemd-generator.early.XXXXXX - Generated units - - - &USER_CONFIG_UNIT_PATH; - Local configuration + Generated units (early) /etc/systemd/user + Local configuration /run/systemd/user @@ -350,40 +337,24 @@ /tmp/systemd-generator.XXXXXX - Generated units + Generated units (middle) /usr/local/lib/systemd/user - Units for local packages - - - /usr/local/share/systemd/user - - - &userunitdir; - Systemd package configuration + Units for local packages /usr/lib/systemd/user - Units for installed packages - - - /usr/share/systemd/user + Units for installed packages /tmp/systemd-generator.late.XXXXXX - Generated units + Generated units (late) - Note: the paths listed above are set at - compilation time and differ between distributions. The - "authoritative" list is printed by - systemd at during start and daemon - reconfiguration. - Additional units might be loaded into systemd ("linked") from directories not on the unit load path. See the link command for