Auto start denyhosts at startup
Nils Kassube
kassube at gmx.net
Tue Jul 7 21:09:02 UTC 2009
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
More information about the ubuntu-users
mailing list