Print

Print


@simonmichal 
1. thanks a lot! :)
2. well, the question was because while the env vars are documented and can be easily used, for conf file the internal names should be used (which would need some work for translation) .. so, now i realize that what i wanted to actually ask is, if is is possible to make the well know format of env vars (XRD_) to be also processed in the conf file
3. yes, i would like to NOT apply my application defaults if the parameter was already changed by env var or conf file..
so far i'm doing this : https://github.com/adriansev/jalien_py/blob/master/alienpy/alien.py#L1528
but with the usage of conf file i cannot check if the variable was already set; e.g.:
```
[2021-04-30 11:20:13.735004 +0300][Debug  ][Utility           ] Initializing xrootd client version: v20210428-1913644cc
[2021-04-30 11:20:13.735080 +0300][Debug  ][Utility           ] Unable to process user config file: [ERROR] OS Error: no such file or directory
[2021-04-30 11:20:13.735092 +0300][Dump   ][Utility           ] [User config] "ConnectionRetry" = "5"
[2021-04-30 11:20:13.735095 +0300][Dump   ][Utility           ] [User config] "ConnectionWindow" = "12"
[2021-04-30 11:20:13.735097 +0300][Dump   ][Utility           ] [User config] "TimeoutResolution" = "12"
[2021-04-30 11:20:13.735099 +0300][Debug  ][Utility           ] [Effective config] "ConnectionRetry" = "5"
[2021-04-30 11:20:13.735101 +0300][Debug  ][Utility           ] [Effective config] "ConnectionWindow" = "12"
[2021-04-30 11:20:13.735103 +0300][Debug  ][Utility           ] [Effective config] "TimeoutResolution" = "12"
[2021-04-30 11:20:13.735117 +0300][Debug  ][Utility           ] Env: overriding entry: ConnectionWindow=120 with 12
[2021-04-30 11:20:13.735120 +0300][Debug  ][Utility           ] Env: overriding entry: ConnectionRetry=5 with 5
[2021-04-30 11:20:13.735124 +0300][Debug  ][Utility           ] Env: overriding entry: TimeoutResolution=15 with 12
[2021-04-30 11:20:13.735153 +0300][Debug  ][PlugInMgr         ] Initializing plug-in manager...
[2021-04-30 11:20:13.735156 +0300][Debug  ][PlugInMgr         ] No default plug-in, loading plug-in configs...
[2021-04-30 11:20:13.735158 +0300][Debug  ][PlugInMgr         ] Processing plug-in definitions in /etc/xrootd/client.plugins.d...
[2021-04-30 11:20:14.120543 +0300][Debug  ][Utility           ] Env: overriding entry: TimeoutResolution=12 with 1
[2021-04-30 11:20:14.120569 +0300][Debug  ][Utility           ] Env: overriding entry: ConnectionRetry=5 with 3
[2021-04-30 11:20:14.120575 +0300][Debug  ][Utility           ] Env: overriding entry: ConnectionWindow=12 with 10
```
is there a way to recognize if a parameter was already set bu the conf file?
thanks a lot!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1311#issuecomment-829932854

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1