Hi Marvin,

On Tue, 2 Jul 2013 11:51:44 +0000
Marvin Nipper <[email protected]> wrote:

> Because I'd sent you my original "SNARE compatibility" components,
> I needed to get these to you as well (which are now spun off into include
> files). 
Thanks for the files!

>  One last thing, although I probably should post this on the main list
> (but I'm being lazy).  My impression is that the "include" mechanism
> isn't working as intended, at least on the Windows side.  Specifically,
> with respect to any attempt to use relative path names.  I initially
> assume that the relative name should be "up to, and inclusive of" the
> nxlog directory, and tried using "conf\includefilename", but that did not
> work.  I then tried both backward and forward slashes (because the manual
> used a forward slash in the Windows example), and progressively added
> back each chunk of the directory structure (e.g. nxlog\conf\..., and the
> Program Files\nxlog\conf\...), but each time, it said that it couldn't
> find my include file.  Finally, I just blew off attempting to use
> relative references, because there were already full-qualified variables
> defined for other purposes, so I just used one of those instead.
> Anyway... you may want to check that out, only because the manual implies
> that relative references should work.

As noted in the manual there is a SpoolDir directive which is used to set
the working directory to, so that relative paths are rooted there.
Unfortunately for the include directive this does not work since it
needs to parse the config file for SpoolDir. For this reason you should
expect it to use the current working directory when it is started in
foreground, otherwise it will be the working directory of the
windows service control manager, which seems to be %WinDir%\System32.
For this reason it will behave differently with relative paths when
started with -f or as a service so you should be careful with relative
paths in the config file, it is best to avoid them.

I'm cc-ing the list for future reference.

Regards,
Botond

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
nxlog-ce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to