Martin wrote:

Thanks for pointing out that wonderful piece of software.
I installed DenyHosts
[snip]
How can I start denyhosts without logging on to the machine ( logon to
windows ) and open a Cygwin bash and start denyhosts by hand?

I tried the following:
cygrunsrv -I  Denyhosts -d "CygWin Denyhosts" -p
/usr/share/denyhosts/denyhosts_start.sh
[snip]

Almost right, you don't need a script, you just need the correct parameters for cygrunsrv and DenyHosts:

# Remove what you did, and stop it if started by hand:
cygrunsrv --stop Denyhosts
  or
killall python
cygrunsrv --remove Denyhosts

# Install the service:
cygrunsrv -I DenyHosts -p /usr/share/denyhosts/daemon-control -a start \
-d DenyHosts -f "DenyHosts 2.6" -y sshd -x /var/run/denyhosts.pid -o

# Start it (it will start on reboot):
cygrunsrv -S DenyHosts

# Check if everything went right:
cygrunsrv -Q DenyHosts

Adjust any of the parameters if needed.
--
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to