summaryrefslogtreecommitdiffstats
path: root/proxy_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 17:18:40 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 17:18:40 +0000
commit108c9ad989aeeff143bebf230946a50ae5e8ae3e (patch)
tree2a9a4074cb511ed13987785ecd9bdfa42a8b8361 /proxy_wizard
parent32be07bcf5253e7f321dccd2efd40b5fffb1011c (diff)
downloaddrakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.gz
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.bz2
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.xz
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.zip
do not reinvent services::restart_or_start()
Diffstat (limited to 'proxy_wizard')
-rwxr-xr-xproxy_wizard/Squid.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm
index e938d2d3..f6bfa84d 100755
--- a/proxy_wizard/Squid.pm
+++ b/proxy_wizard/Squid.pm
@@ -282,11 +282,7 @@ level = $o->{var}{wiz_squid_level}");
} $file;
system("/sbin/chkconfig --level 345 squid on");
- if (services::is_service_running('squid')) {
- services::restart('squid');
- } else {
- services::start('squid');
- }
+ services::restart_or_start('squid');
undef $w;
check_started('squid');
}