diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-02-05 12:28:40 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-02-05 12:28:40 +0000 |
commit | 6535dbfc6b520ee67b44e594c8419d99022f7357 (patch) | |
tree | 01c308e6e8f50920127ae2b6df2d11b1c508d94a /lib/network/drakfirewall.pm | |
parent | 1303584668782fa59c30fb64dcbfe38b9fd53380 (diff) | |
download | drakx-net-6535dbfc6b520ee67b44e594c8419d99022f7357.tar drakx-net-6535dbfc6b520ee67b44e594c8419d99022f7357.tar.gz drakx-net-6535dbfc6b520ee67b44e594c8419d99022f7357.tar.bz2 drakx-net-6535dbfc6b520ee67b44e594c8419d99022f7357.tar.xz drakx-net-6535dbfc6b520ee67b44e594c8419d99022f7357.zip |
Restarting mandi when necessary.
Diffstat (limited to 'lib/network/drakfirewall.pm')
-rw-r--r-- | lib/network/drakfirewall.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm index aa52e9b..0e5c300 100644 --- a/lib/network/drakfirewall.pm +++ b/lib/network/drakfirewall.pm @@ -293,5 +293,9 @@ sub main { my $ports = to_ports($servers, $unlisted); set_ports($in->do_pkgs, $disabled, $ports, $log_net_drop, $in) or return; + # restart mandi + require services; + services::is_service_running("mandi") and services::restart("mandi"); + ($disabled, $ports); } |