<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi,<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">`man ipsec` says:<br><br>ENVIRONMENT<br> The following environment variables control where strongSwan finds its components. The ipsec command<br>
sets them if they are not already set.<br><br> IPSEC_DIR directory containing ipsec programs and utilities<br> IPSEC_SBINDIR directory containing ipsec command<br> IPSEC_CONFDIR directory containing configuration files<br>
IPSEC_PIDDIR directory containing PID/socket files<br> IPSEC_SCRIPT name of the ipsec script<br> IPSEC_NAME name of ipsec distribution<br> IPSEC_VERSION version numer of ipsec userland and kernel<br>
IPSEC_STARTER_PID PID file for ipsec starter<br> IPSEC_CHARON_PID PID file for IKE keying daemon<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">So from reading the man page I would expect that I can set IPSEC_CONFDIR and when I invoke ipsec, that it would use my defined IPSEC_CONFDIR variable.<br>
<br></div><div class="gmail_default" style="font-family:courier new,monospace">But when you read /usr/sbin/ipsec you will notice that the script doesn't honor the already set environment variables, instead it will always set (overwrite) them with some defaults.<br>
<br></div><div class="gmail_default" style="font-family:courier new,monospace">This seems to be already discussed before on the mailing list, but wasn't fixed:<br><a href="https://lists.strongswan.org/pipermail/users/2009-September/003863.html">https://lists.strongswan.org/pipermail/users/2009-September/003863.html</a><br>
<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Should I fill a bug or will you do? At least, if you don't want to support that, you should fix the documentation. Or am I wrong?<br><br>
Thanks!<br><br><br>-- <br></div><div class="gmail_default" style="font-family:courier new,monospace">Regards,<br>Igor<br><br></div><div class="gmail_default" style="font-family:courier new,monospace"><br></div></div>