From 058c39dbbda1af9554b2d38b2340b0cfe7342a78 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sun, 31 Mar 2013 07:04:31 -0700 Subject: [PATCH] Explaining the variable expansion --- README.markdown | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 0da5795..2046afe 100644 --- a/README.markdown +++ b/README.markdown @@ -112,7 +112,11 @@ To prevent this problem, create `myapp.exe.config` in the same directory as `mya See [KB 936707](http://support.microsoft.com/kb/936707) for more details. -Configuration file syntax +Environment Variable Expansion in Configuration File +---------------------------------------------------- +Configuration XML files can include environment variable expansions of the form `%Name%`. Such occurences, if found, will be automatically replaced by the actual values of the variables. If an undefined environment variable is referenced, no substituion occurs. + +Configuration File Syntax ------------------------- The behaviour of the service is controlled by the XML configuration file. The root element of this XML file must be ``, and it supports the following child element. @@ -189,3 +193,5 @@ See the "Logging" section above for more details. ### workingdirectory This optional element sets the current directory of the process launched by winsw. + + %SystemDrive%\