From 043f44d7837ee7255bf9863a5ee4210e43a105c5 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Fri, 18 Feb 2022 18:52:32 +0800 Subject: [PATCH] Fix varnish.servicereloadfailedduetomissconf --- fix-varnish.service-reload-failed.patch | 25 +++++++++++++++++++++++++ varnish.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 fix-varnish.service-reload-failed.patch diff --git a/fix-varnish.service-reload-failed.patch b/fix-varnish.service-reload-failed.patch new file mode 100644 index 0000000..fb6e696 --- /dev/null +++ b/fix-varnish.service-reload-failed.patch @@ -0,0 +1,25 @@ +From eac670ac734d814b466cbbf5e9b68625735438e5 Mon Sep 17 00:00:00 2001 +From: caodongxia <315816521@qq.com> +Date: Fri, 18 Feb 2022 16:21:18 +0800 +Subject: [PATCH] fix varnish.service reload failed + +--- + .../systemd/varnish.service | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pkg-varnish-cache-0ad2f22629c4a368959c423a19e352c9c6c79682/systemd/varnish.service b/pkg-varnish-cache-0ad2f22629c4a368959c423a19e352c9c6c79682/systemd/varnish.service +index c06c36b..6c65124 100644 +--- a/pkg-varnish-cache-0ad2f22629c4a368959c423a19e352c9c6c79682/systemd/varnish.service ++++ b/pkg-varnish-cache-0ad2f22629c4a368959c423a19e352c9c6c79682/systemd/varnish.service +@@ -22,7 +22,7 @@ TasksMax=infinity + LimitCORE=infinity + + ExecStart=/usr/sbin/varnishd -a :6081 -f /etc/varnish/default.vcl -s malloc,256m +-ExecReload=/usr/sbin/varnishreload ++ExecReload=/usr/sbin/varnishreload /etc/varnish/default.vcl + + [Install] + WantedBy=multi-user.target +-- +2.27.0 + diff --git a/varnish.spec b/varnish.spec index 504c797..8fa3001 100644 --- a/varnish.spec +++ b/varnish.spec @@ -3,7 +3,7 @@ Name: varnish Summary: A web application accelerator Version: 7.0.1 -Release: 2 +Release: 3 License: BSD URL: https://www.varnish-cache.org/ Source0: http://varnish-cache.org/_downloads/varnish-%{version}.tgz @@ -11,6 +11,7 @@ Source0: http://varnish-cache.org/_downloads/varnish-%{version}.tgz # https://github.com/varnishcache/pkg-varnish-cache Source1: https://github.com/varnishcache/pkg-varnish-cache/archive/0ad2f22629c4a368959c423a19e352c9c6c79682/pkg-varnish-cache-0ad2f22.tar.gz Patch0001: fix-varnish-devel-installation-failure.patch +Patch0002: fix-varnish.service-reload-failed.patch BuildRequires: python3-sphinx python3-docutils pkgconfig make graphviz nghttp2 systemd-units BuildRequires: ncurses-devel pcre2-devel libedit-devel gcc @@ -158,6 +159,9 @@ test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc %{_mandir}/man7/*.7* %changelog +* Fri Feb 18 2022 caodongxia - 7.0.1-3 +- Fix varnish.service reload failed due to miss conf + * Fri Jan 21 2021 wulei - 7.0.1-2 - Fix varnish-devel installation failure -- Gitee