6 Commits

Author SHA1 Message Date
6484444e10 * Thu Jul 03 2025 Brian Read <brianr@koozali.org> 11.0.0-6.sme
- Add squid.conf entry for shutdown_lifetime set to 5 seconds to speed up closedown of squid [SME: 13066]
2025-07-03 18:29:17 +01:00
96e6cb68dc Add *.bak to .gitignore 2024-11-12 19:21:17 +00:00
8a432f32f4 Deleting spurious *.spec.bak files 2024-11-12 19:21:14 +00:00
4b50f9f9bc Update README with specific Bugzilla links with status options 2024-10-27 14:29:22 +00:00
ddaf5b4731 Update readme bugzilla link to show all outstanding bugs 2024-10-27 12:13:03 +00:00
ce4f198792 * 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]
2024-09-22 16:47:13 -04:00
5 changed files with 22 additions and 6 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
*.log
*spec-20*
*.tar.xz
*.bak

View File

@@ -6,7 +6,14 @@ SMEServer Koozali developed git repo for smeserver-proxy smeserver
<br />https://wiki.koozali.org/
## Bugzilla
Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-proxy&product=SME%20Server%2010.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)\
Show list of outstanding bugs:
[All](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=UNCONFIRMED&bug_status=CONFIRMED&bug_status=NEEDINFO&bug_status=IN_PROGRESS&bug_status=RESOLVED&bug_status=VERIFIED&cf_package=smeserver-proxy&classification=SME+Server&list_id=105756&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
[Confirmed](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=CONFIRMED&cf_package=smeserver-proxy&classification=SME+Server&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
[Unconfirmed](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=UNCONFIRMED&cf_package=smeserver-proxy&classification=SME+Server&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
[Need info](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=NEEDINFO&cf_package=smeserver-proxy&classification=SME+Server&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
[In progress](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=IN_PROGRESS&cf_package=smeserver-proxy&classification=SME+Server&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
[Resolved](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=RESOLVED&cf_package=smeserver-proxy&classification=SME+Server&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
[Verified](https://bugs.koozali.org/buglist.cgi?action=wrap&bug_status=VERIFIED&cf_package=smeserver-proxy&classification=SME+Server&order=changeddate+DESC%2Ccomponent%2Cpriority%2Cbug_severity&query_format=advanced)
And a list of outstanding Legacy bugs: (e-smith-proxy) [here](https://bugs.koozali.org/buglist.cgi?component=e-smith-proxy&product=SME%20Server%2010.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
## Description

View File

@@ -5,16 +5,17 @@
my $min = int(rand(60));
my $hour = int(rand(5));
my $dow = substr(localtime,0,3);
my $cmd = 'squid -k rotate 2>&1 |grep -v "BCP 177"';
if ($freq eq 'hourly') {
return "$min * * * * root squid -k rotate\n";
return "$min * * * * root $cmd\n";
} elsif ($freq eq 'weekly') {
return "$min $hour * * $dow root squid -k rotate\n";
return "$min $hour * * $dow root $cmd\n";
} elsif ($freq eq 'monthly') {
return "$min $hour 15 * * root squid -k rotate\n";
return "$min $hour 15 * * root $cmd\n";
} elsif ($freq eq 'disabled') {
return "# squid rotate disabled\n";
} else {
return "$min $hour * * * root squid -k rotate\n"
return "$min $hour * * * root $cmd\n"
}
}

View File

@@ -0,0 +1 @@
shutdown_lifetime 5 seconds

View File

@@ -4,7 +4,7 @@ Summary: smeserver server and gateway - proxy module
%define name smeserver-proxy
Name: %{name}
%define version 11.0.0
%define release 4
%define release 6
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@@ -29,6 +29,12 @@ Provides: e-smith-proxy
smeserver server and gateway software - proxy module.
%changelog
* Thu Jul 03 2025 Brian Read <brianr@koozali.org> 11.0.0-6.sme
- Add squid.conf entry for shutdown_lifetime set to 5 seconds to speed up closedown of squid [SME: 13066]
* 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
- Update createlinks to create smeserver-package-update event[SME: 12579]