diff options
Diffstat (limited to 'proxy_wizard/Squid.pm')
-rwxr-xr-x | proxy_wizard/Squid.pm | 6 |
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'); } |