[systemd-devel] [PATCH 2/2] .include directive does not include as textual include it includes by parsing the include file.

Barry Scott barry.scott at onelan.co.uk
Mon Oct 3 03:50:10 PDT 2011


This means that section headers must be used inside of
a .include file otherwise all the lines are ignored.

Signed-off-by: Barry Scott <barry.scott at onelan.co.uk>
---
 man/systemd.unit.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index bf8de32..e47c146 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -121,8 +121,9 @@
 
                 <para>If a line starts with <option>.include</option>
                 followed by a file name, the specified file will be
-                read as if its contents were listed in place of the
-                <option>.include</option> directive.</para>
+                parsed at this point. Make sure that the file that is
+                included has the appropiate section headers before
+                any directives.</para>
 
                 <para>Along with a unit file
                 <filename>foo.service</filename> a directory
-- 
1.7.6



More information about the systemd-devel mailing list