diff options
author | matteo <matteo.pasotti@gmail.com> | 2015-02-08 12:36:11 +0200 |
---|---|---|
committer | matteo <matteo.pasotti@gmail.com> | 2015-02-08 12:36:11 +0200 |
commit | 17538ab75a8d425ed76d9637a49192b8d73b85d6 (patch) | |
tree | 19207b0d8860d9680e500689af94e30fd455585a /lib/AdminPanel | |
parent | 570806cc5ccaa1fc5682aa3b5b9c73f61c3fac96 (diff) | |
download | manatools-17538ab75a8d425ed76d9637a49192b8d73b85d6.tar manatools-17538ab75a8d425ed76d9637a49192b8d73b85d6.tar.gz manatools-17538ab75a8d425ed76d9637a49192b8d73b85d6.tar.bz2 manatools-17538ab75a8d425ed76d9637a49192b8d73b85d6.tar.xz manatools-17538ab75a8d425ed76d9637a49192b8d73b85d6.zip |
switched to Shared::Services (tnx anaselli)
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r-- | lib/AdminPanel/Module/Firewall.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/AdminPanel/Module/Firewall.pm b/lib/AdminPanel/Module/Firewall.pm index 7cf2a6d6..89cec970 100644 --- a/lib/AdminPanel/Module/Firewall.pm +++ b/lib/AdminPanel/Module/Firewall.pm @@ -31,6 +31,7 @@ use AdminPanel::Shared qw(trim); use AdminPanel::Shared::GUI; use AdminPanel::Shared::Firewall; use AdminPanel::Shared::Shorewall; +use AdminPanel::Shared::Services; use MDK::Common::Func qw(if_ partition); use MDK::Common::System qw(getVarsFromSh); @@ -1149,13 +1150,13 @@ sub start { $self->set_ports($disabled, $ports, $self->log_net_drop()) or return; # restart mandi - require services; - services::is_service_running("mandi") and services::restart("mandi"); + my $services = AdminPanel::Shared::Services->new(); + $services->is_service_running("mandi") and $services->restart("mandi"); # restarting services if needed foreach my $service (@$servers) { if ($service->{restart}) { - services::is_service_running($_) and services::restart($_) foreach split(' ', $service->{restart}); + $services->is_service_running($_) and $services->restart($_) foreach split(' ', $service->{restart}); } } |