]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: systemd.unit: move note about clearing lists (#7621)
authorDaniel Black <danielgb@au.ibm.com>
Thu, 14 Dec 2017 04:51:23 +0000 (15:51 +1100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Dec 2017 04:51:23 +0000 (13:51 +0900)
This is mainly for drop-in files.

man/systemd.unit.xml

index 49f82c1c2493158ccb734aed516a176dcb4c12cb..5cd8be310d643e6c52253d57010a343a85cd5302 100644 (file)
@@ -1603,13 +1603,6 @@ ExecStart=/usr/sbin/foo-daemon
       disadvantage that some future updates by the vendor might be
       incompatible with the local changes.</para>
 
-      <para>Note that for drop-in files, if one wants to remove
-      entries from a setting that is parsed as a list (and is not a
-      dependency), such as <varname>ConditionPathExists=</varname> (or
-      e.g. <varname>ExecStart=</varname> in service units), one needs
-      to first clear the list before re-adding all entries except the
-      one that is to be removed. See below for an example.</para>
-
       <para>This also applies for user instances of systemd, but with
       different locations for the unit files. See the section on unit
       load paths for further details.</para>
@@ -1681,7 +1674,12 @@ AssertPathExists=/srv/www
 Nice=0
 PrivateTmp=yes</programlisting>
 
-      <para>Note that dependencies (<varname>After=</varname>, etc.)
+      <para>Note that for drop-in files, if one wants to remove
+      entries from a setting that is parsed as a list (and is not a
+      dependency), such as <varname>AssertPathExists=</varname> (or
+      e.g. <varname>ExecStart=</varname> in service units), one needs
+      to first clear the list before re-adding all entries except the
+      one that is to be removed. Dependencies (<varname>After=</varname>, etc.)
       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.</para>