Date: Tue, 09 Mar 2021 06:30:33 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 254151] Restarting www/varnish6 fails when using varnishd_config option Message-ID: <bug-254151-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254151 Bug ID: 254151 Summary: Restarting www/varnish6 fails when using varnishd_config option Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: feld@FreeBSD.org Reporter: daniel@morante.net Flags: maintainer-feedback?(feld@FreeBSD.org) Assignee: feld@FreeBSD.org Restarting the varnishd service fails when using the `varnishd_config` opti= on in /etc/rc.conf. I have the following (valid) VCL file (`/usr/local/etc/varnish.d/default.vc= l`): ``` vcl 4.0; backend default { .host =3D "127.0.0.1"; .port =3D "8080"; .proxy_header =3D 2; } ``` In `/etc/rc.conf` I have: ``` varnishd_enable=3D"YES" varnishd_config=3D"/usr/local/etc/varnish.d/default.vcl" varnishd_storage=3D"malloc,6G" varnishd_extra_flags=3D"-p feature=3D+http2 -a 127.0.0.1:8000,PROXY" ``` Varnish starts without any problem: ``` # service varnishd start Performing sanity check on varnishd configuration: varnishd: the configuration file /usr/local/etc/varnish.d/default.vcl synta= x is ok Starting varnishd. Warnings: VCL compiled. Debug: Version: varnish-6.5.1 revision NOGIT Debug: Platform: FreeBSD,12.2-RELEASE-p1,amd64,-junix,-smalloc,-sdefault,-hcritbit Debug: Child (9399) Started ``` If I try to restart it fails: ``` # service varnishd restart Performing sanity check on varnishd configuration: /usr/local/etc/rc.d/varnishd: ERROR: varnishd: the configuration file /usr/local/etc/varnish.d/default.vcl syntax is NOT ok ``` I will have to stop, then start: ``` # service varnishd stop && service varnishd start Stopping varnishd. Waiting for PIDS: 9391. Performing sanity check on varnishd configuration: varnishd: the configuration file /usr/local/etc/varnish.d/default.vcl synta= x is ok Starting varnishd. Warnings: VCL compiled. ``` --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254151-7788>