On Mon, 10 Apr 2006 08:51:03 -0700 (PDT)
Phil Schwartz <[EMAIL PROTECTED]> wrote:

> 
> Pascal,
> 
> Chances are you have more than one version of Python installed?  Is 
> Python2.4 not the 'default' version-- that is, if you type:
> 
> $ python -V
> 
> does it say "Python 2.4" or some other version?
> 
> Try changing the first line of the init.d/denyhosts script from:
> 
> #!/usr/bin/env python
> 
> to
> 
> #!/usr/bin/python2.4
> 
> (or whatever the path to your python2.4 executable is-- you can always
> try  "which python2.4" to locate it).

excuse me, if I not explained this little detail: Phil, your init script
isn't LSB-compilant (must be shell posix and not python) so i writed one
for debian system [1]. Your workaround can't work on a debian system.

But I can confirm that on my machine I've more than one version of
Python installed

$ python -V
Python 2.3.5

And I can also confirm that if I link /usr/bin/python to correct version
of python2.4, it works fine.

$ which python
/usr/bin/python

$ ls -alh /usr/bin/python
lrwxrwxrwx 1 root root 9 2006-04-04 11:45 /usr/bin/python -> python2.3

$ sudo rm /usr/bin/python
$ sudo ln -s /usr/bin/python2.4 /usr/bin/python 

$ sudo /etc/init.d/denyhosts start
Starting DenyHosts: denyhosts.

$ ps -ef | grep denyhosts
root     13823     1  0 18:37 ?        00:00:00 python
/usr/bin/denyhosts --daemon --config=/etc/denyhosts.conf 

Now I've an idea about the problem and I can take the "right way" to
close this bug.

Thanks a lot.

Pascal, I think to close this bug ASAP, but you can use this little
workaround to have denyhosts working with python2.4

Cheers,

[1] I've not send you my init script because I use "start-stop-daemon"
that is only parts of Debian and can't be used on other distribution.

-- 
Marco Bertorello
System Administrator
Linux Registered User #319921

Attachment: pgp2yn93lrbHL.pgp
Description: PGP signature

Reply via email to