On Friday 02 July 2004 22:36, Manuel Kasper wrote:
> On 02.07.2004 20:21 +0100, Peter Curran wrote:
> > Thats it - any ideas?
> I just tried putting a simple PHP script in /etc/inc/ext/openvpn/rc,
> and sure enough, it was executed during the boot.
Good to hear - at least I know it is me!
> Note that because system.inc executes the extensions' rc file with
> exec() and not passthru(), you won't see any output that your scripts
> produce on the console. I think I'll change that call in the next
> release (exec -> passthru) for convenience.
Yes - thats good. I was using a simple echo "hello"; to indicate my rc
script was called. :-(
So, that means that my script is called: It is so simple that it muts be
running, therefore the problem lies with the openvpn_configure(); call.
Now, the included file has lots of other includes, and that may explain why it
does not work right. I will backtrack the list of includes to make sure that
my dependencies are sane during boot (as opposed to after).
I think I only depend on $g and $config, but there mey be others.
Thanks for the tips - I am sure I will get it working (eventually)
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.