$text{'clear_stop'}\n"; &system_logged("$config{'squid_path'} -f $config{'squid_conf'} ". "-k shutdown >/dev/null 2>&1"); for(my $i=0; $i<40; $i++) { if (!kill(0, $pid)) { last; } sleep(1); } print "$text{'clear_done'}\n"; $stopped++; } # Initialize the cache my ($user, $group) = &get_squid_user($conf); if ($user) { foreach my $c (split(/\s+/, $in{'caches'})) { &make_dir($c, 0755); } } &chown_files($user, $group, $conf); my $cmd = "$config{'squid_path'} -f $config{'squid_conf'} -z"; print "
", &text('icache_itscwtc',$cmd), "\n"; print "
\n"; &additional_log('exec', undef, $cmd); my $fh; open($fh, "$cmd 2>&1 |"); while(<$fh>) { print &html_escape($_); } close($fh); print "
".&html_escape($errs)."