Auto start denyhosts at startup

Keith Clark keithclark at k-wbookworm.com
Tue Jul 7 21:13:47 UTC 2009


On Tue, 2009-07-07 at 23:09 +0200, Nils Kassube wrote:
> Keith Clark wrote:
> > How do I auto start the denyhosts daemon when I boot up.  I have to
> > execute the program as root.  I installed it via synaptic.
> >
> > I've installed it and modified its denyhosts.conf file.  I start it
> > up with:
> >
> > sudo /usr/sbin/denyhosts --daemon --verbose
> > --config=/etc/denyhosts.conf
> >
> > All seems to work fine, but it does not startup upon reboot.
> 
> Put the command
> 
> /usr/sbin/denyhosts --daemon --verbose --config=/etc/denyhosts.conf
> 
> in the file /etc/rc.local before this line:
> 
> exit 0
> 
> That will start the program as the last command of the boot sequence.
> 
> 
> Nils
> 
> 

Nils,

Will that start it as root?

Keith






More information about the ubuntu-users mailing list