From 0cf4c0d1414a0110d420e7b4b1c2f645be811738 Mon Sep 17 00:00:00 2001 From: Chris Atkinson Date: Thu, 17 Dec 2015 22:41:59 -0500 Subject: [PATCH] man: describe precedence of drop-in .conf files over unit files --- man/systemd.unit.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 5b12378eda6..9b7013e0ce4 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -191,6 +191,17 @@ .d/ subdirectory and reads its .conf files. + In addition to /etc/systemd/system, + the drop-in .conf files for system services + can be placed in /usr/lib/systemd/system or + /run/systemd/system directories. Drop-in + files in /etc take precedence over those in + /run which in turn take precedence over + those in /usr/lib. Drop-in files under any of + these directories take precedence over unit files wherever located. + (Of course, since /run is temporary and + /usr/lib is for vendors, it is unlikely + drop-ins should be used in either of those places.) @@ -1402,6 +1413,7 @@ PrivateTmp=yes cannot be reset to an empty list, so dependencies can only be added in drop-ins. If you want to remove dependencies, you have to override the entire unit. +