* Sun Sep 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-5.sme
- workaround cron noise on squid rotate without IPv6 [SME: 12636]
This commit is contained in:
parent
d6cdf6a341
commit
ce4f198792
@ -5,16 +5,17 @@
|
|||||||
my $min = int(rand(60));
|
my $min = int(rand(60));
|
||||||
my $hour = int(rand(5));
|
my $hour = int(rand(5));
|
||||||
my $dow = substr(localtime,0,3);
|
my $dow = substr(localtime,0,3);
|
||||||
|
my $cmd = 'squid -k rotate 2>&1 |grep -v "BCP 177"';
|
||||||
|
|
||||||
if ($freq eq 'hourly') {
|
if ($freq eq 'hourly') {
|
||||||
return "$min * * * * root squid -k rotate\n";
|
return "$min * * * * root $cmd\n";
|
||||||
} elsif ($freq eq 'weekly') {
|
} elsif ($freq eq 'weekly') {
|
||||||
return "$min $hour * * $dow root squid -k rotate\n";
|
return "$min $hour * * $dow root $cmd\n";
|
||||||
} elsif ($freq eq 'monthly') {
|
} elsif ($freq eq 'monthly') {
|
||||||
return "$min $hour 15 * * root squid -k rotate\n";
|
return "$min $hour 15 * * root $cmd\n";
|
||||||
} elsif ($freq eq 'disabled') {
|
} elsif ($freq eq 'disabled') {
|
||||||
return "# squid rotate disabled\n";
|
return "# squid rotate disabled\n";
|
||||||
} else {
|
} else {
|
||||||
return "$min $hour * * * root squid -k rotate\n"
|
return "$min $hour * * * root $cmd\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ Summary: smeserver server and gateway - proxy module
|
|||||||
%define name smeserver-proxy
|
%define name smeserver-proxy
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 11.0.0
|
%define version 11.0.0
|
||||||
%define release 4
|
%define release 5
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -29,6 +29,9 @@ Provides: e-smith-proxy
|
|||||||
smeserver server and gateway software - proxy module.
|
smeserver server and gateway software - proxy module.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-5.sme
|
||||||
|
- workaround cron noise on squid rotate without IPv6 [SME: 12636]
|
||||||
|
|
||||||
* Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-4.sme
|
* Thu Apr 04 2024 Brian Read <brianr@koozali.org> 11.0.0-4.sme
|
||||||
- Update createlinks to create smeserver-package-update event[SME: 12579]
|
- Update createlinks to create smeserver-package-update event[SME: 12579]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user