Karl Lindholm wrote:

I am still trying to get denyhosts to start on boot up. I run Mandriva 2007 (all current updates) python 2.4 and DenyHosts 2.5.

I have now seen an error when trying to start DenyHosts from within the "Mandriva Control Center" -> "Services". This GUI allows me to see which service is running, and to stop or start any that are listed.

When I reboot and got to MCC, it shows DenyHosts stopped. I click on the "Start" button and get this error:

**********
Could not find environment variable: HOSTNAME
Error processing configuration parameter SMTP_SUBJECT:1
DenyHosts is not running
starting DenyHosts: /usr/bin/env python2.4 /usr/bin/denyhosts.py -- daemon --config=/usr/bin/denyhosts.cfg
**********

It is NOT running after this, though the command on the last line works fine from the CLI as root.

Apparently the script cannot use the environment variable HOSTNAME when started by the GUI Control Center. I don't know what causes this (I'm not a Mandriva user and I don't run X11 on my servers), but you could try to hardcode the hostname in your config.

Nils Breunese.

Attachment: PGP.sig
Description: Dit deel van het bericht is digitaal ondertekend

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to