Re(2): [Dgwebminmodule-users] How can I get shar ed libraries loaded with Webmi n
Brought to you by:
fuzzbawl
|
From: Tim S. <tsi...@du...> - 2002-09-03 08:45:07
|
Daniel Barron (02/09/2002 23:08):
>In message <02A...@ga...> you wrote:
>
>>
>> Hello,
>>
>> I have just downloaded the webmin module for Dansguardian
>>
>> I am running on Solaris 8
>>
>> with Dansguardian=20in /usr/local/dansguardian
>>
>> I cannot start the webmin module because the shared library dansguardian
>> needs is in /usr/local/lib
>>
>> how can I set LD=5FLIBRARY=5FPATH correctly so that it can be passed to=
the
>> webmin module
>
>I don't know the module but the normal way to pass a variable on like that
>is to:
>
>LD=5FLIBRARY=5FPATH=3D/usr/local/lib
>export LD=5FLIBRARY=5FPATH
>/usr/local/dansguardian/bin/dansguardian
>
>In some sh or bash script should work. You might need to mod the webmin
>module code to add this...
>
What I ended up doing was the following
in these scripts index.cgi, restart.cgi, start.cgi, status.cgi, stop.cgi I
added the following code
$ENV{'LD=5FLIBRARY=5FPATH'} =3D"/usr/local/lib";
before the call to the binary program
Not knowing webmin at all I had already tried adding to the webmin startup
script, to a couple of webmin perl routines which seem to be called by most=
of
the code but none of these worked.
It would be useful if this could be added as some sort of config option
On a slightly different matter I editted the webmin config file by hand to=
set
the variables, but was puzzled to see that they did not appear to have any
affect , it was not until I used the webmin option to configure dansguardian
that the variables seemed to work, is this normal webmin behaviour or am I
missing a step somewhere=3F
Tim
|