summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-02-19 21:57:43 +0000
committerThierry Vignaud <tv@mageia.org>2013-02-19 21:57:43 +0000
commitaf2eceeebb620f68d150e51696f5d0d1ea7536f9 (patch)
tree120ffc6a994c53635c6d7cb665402c124cbef713
parentbad61193c3d441e9bf1172bb4ae9d118300f2d5a (diff)
downloaddrakx-net-af2eceeebb620f68d150e51696f5d0d1ea7536f9.tar
drakx-net-af2eceeebb620f68d150e51696f5d0d1ea7536f9.tar.gz
drakx-net-af2eceeebb620f68d150e51696f5d0d1ea7536f9.tar.bz2
drakx-net-af2eceeebb620f68d150e51696f5d0d1ea7536f9.tar.xz
drakx-net-af2eceeebb620f68d150e51696f5d0d1ea7536f9.zip
load services when needed
-rw-r--r--NEWS2
-rw-r--r--lib/network/shorewall.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 17ca017..0386b63 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- load services when needed
+
1.19:
- drakconnect:
o add support for 802.1x EAP with WPA Enterprise Patch (mga#8577,
diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm
index a032587..aa286e7 100644
--- a/lib/network/shorewall.pm
+++ b/lib/network/shorewall.pm
@@ -108,6 +108,7 @@ sub read {
my ($o_in) = @_;
#- read old rules file if config is not moved to rules.drakx yet
my @rules = get_config_file(-f "$::prefix${shorewall_root}/rules.drakx" ? 'rules.drakx' : 'rules');
+ require services;
my %conf = (disabled => services::is_service_running(shorewall),
ports => join(' ', map {
my $e = $_;