[Varnish] #1072: varnish does not start on boot up of machine but starts fine by manual /etc/init.d/varnish restart
Varnish
varnish-bugs at varnish-cache.org
Fri Dec 16 00:46:58 CET 2011
#1072: varnish does not start on boot up of machine but starts fine by manual
/etc/init.d/varnish restart
-------------------+--------------------------------------------------------
Reporter: bevo | Type: defect
Status: new | Priority: normal
Milestone: | Component: build
Version: 3.0.1 | Severity: normal
Keywords: |
-------------------+--------------------------------------------------------
Comment(by bevo):
I have found the cause of this.
The daemon/package creates this directory (serverX being fqdn of host):
/var/lib/varnish/serverX/
It creates this directory as root:root
When the manager process compiles the vcl into a .so object it places it
in /var/lib/varnish/serverX/
This is fine except that it creates the object as root:root, rather than
the non privileged user that is going to read it.
This is not normally a problem on alot of systems as you take advantage of
the default umask which allows other read access to the file.
in summary:
The vcl is compiled and not set with appropriate permissions without
relying on the other chmod flag for read access. this file should be
created with group or user access set to the unprivileged user/group
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1072#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list