--- smeserver-denyhosts-2.6/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/denyhosts.patch3 2008-04-24 04:22:55.000000000 +0200 +++ smeserver-denyhosts-2.6/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/denyhosts 2008-04-24 05:33:40.000000000 +0200 @@ -62,5 +62,9 @@ DISABLED Disabled - + + + ERROR_STOPPING + Error while trying to stop service + --- smeserver-denyhosts-2.6/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/denyhosts.pm.patch3 2008-04-22 19:56:06.000000000 +0200 +++ smeserver-denyhosts-2.6/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/denyhosts.pm 2008-04-24 05:31:40.000000000 +0200 @@ -230,13 +230,22 @@ $rec->set_prop('status', $status) if $rec; return '' unless $fm->add_new_valid_from; return '' unless $fm->remove_valid_from; - + unless ( system( "/sbin/e-smith/signal-event", "conf-denyhosts" ) == 0 ) { - $fm->error('ERROR_UPDATING'); - return undef; + $fm->error('ERROR_UPDATING'); + return undef; } - + + if ( $rec->prop('status') eq 'disabled' ) + { + unless ( `/etc/init.d/denyhosts stop` ) + { + $fm->error('ERROR_STOPPING'); + return undef; + } + } + $fm->success('SUCCESS'); }