aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authormatteo <matteo.pasotti@gmail.com>2015-02-08 12:36:11 +0200
committermatteo <matteo.pasotti@gmail.com>2015-02-08 12:36:11 +0200
commit17538ab75a8d425ed76d9637a49192b8d73b85d6 (patch)
tree19207b0d8860d9680e500689af94e30fd455585a /lib/AdminPanel
parent570806cc5ccaa1fc5682aa3b5b9c73f61c3fac96 (diff)
downloadmanatools-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.pm7
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});
}
}