Skip to content

Commit

Permalink
Use proper function to check status
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Aug 9, 2024
1 parent d440ba7 commit 9dd6789
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions status/firewalld-monitor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ sub get_firewalld_status
my ($mon, $mod) = @_;
return { 'up' => -1 } if (!&foreign_installed("firewalld"));
&foreign_require("firewalld");
&foreign_require("init");
my $ok = &init::status_action($firewalld::config{'init_name'});
return { 'up' => $ok };
return { 'up' => &firewalld::is_firewalld_running() };
}

0 comments on commit 9dd6789

Please sign in to comment.