Does "stop" then "start" work properly (rather than "condrestart")?

Also, what is the value of LOCK_FILE in denyhosts.cfg?  It should match 
the one in /etc/init.d/denyhosts.

Phil


On Tue, 1 Jul 2008, James Carman wrote:

> My denyhosts problem on fedora seems to correspond to logrotate.  It
> is trying to "condrestart" denyhosts and that doesn't seem to be
> working correctly (it's in /var/logrotate.d/denyhosts).  Here's what
> I've tried:
>
> [EMAIL PROTECTED] ~]# service denyhosts status
> denyhosts.py is stopped
> [EMAIL PROTECTED] ~]# ll /var/lock/subsys/denyhosts
> ls: cannot access /var/lock/subsys/denyhosts: No such file or directory
> [EMAIL PROTECTED] ~]# /usr/bin/denyhosts.py --daemon
> --config=/etc/denyhosts.conf --debug
> [EMAIL PROTECTED] ~]# service denyhosts status
> denyhosts.py (pid 28859) is running...
> [EMAIL PROTECTED] ~]# ll /var/lock/subsys/denyhosts
> -rw-r--r-- 1 root root 6 2008-07-01 07:02 /var/lock/subsys/denyhosts
> [EMAIL PROTECTED] ~]# service denyhosts condrestart
> Stopping denyhosts:                                        [  OK  ]
> Starting denyhosts:                                        [  OK  ]
> [EMAIL PROTECTED] ~]# service denyhosts status
> denyhosts.py is stopped
> [EMAIL PROTECTED] ~]# ll /var/lock/subsys/denyhosts
> ls: cannot access /var/lock/subsys/denyhosts: No such file or directory
> [EMAIL PROTECTED] ~]#
>
> So, when the "condrestart" goes it does kill my running denyhosts
> process, but it doesn't restart it correctly.  The fact that the lock
> file doesn't exist when I try running the service is puzzling.  Can it
> not get the lock file?  Could that be why it's dying?
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Denyhosts-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/denyhosts-user
>

-- 
Regards,

Phil Schwartz
- http://www.phil-schwartz.com

Open Source Projects:
- DenyHosts: http://www.denyhosts.net
- Kodos: http://kodos.sourceforge.net
- ReleaseForge: http://releaseforge.sourceforge.net
- Scratchy: http://scratchy.sourceforge.net
- FAQtor: http://faqtor.sourceforge.net

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to