mirror of
https://github.com/webmin/webmin.git
synced 2026-09-21 21:10:38 +01:00
Fix to use API to stop/start fail2ban service
This commit is contained in:
@@ -507,8 +507,8 @@ my $out;
|
||||
$out = &backquote_logged("$config{'client_cmd'} reload 2>&1 </dev/null")
|
||||
if (!$force_restart);
|
||||
if ($? || $force_restart) {
|
||||
&backquote_logged("$config{'client_cmd'} stop 2>&1 </dev/null");
|
||||
$out = &backquote_logged("$config{'client_cmd'} start 2>&1 </dev/null");
|
||||
&stop_fail2ban_server();
|
||||
$out = &start_fail2ban_server();
|
||||
}
|
||||
return $? ? $out : undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user