[Varnish] #1243: param.show -l default values listed as ^A for user/group (more?)
Varnish
varnish-bugs at varnish-cache.org
Wed Jan 2 16:50:51 CET 2013
#1243: param.show -l default values listed as ^A for user/group (more?)
----------------------+-------------------
Reporter: kristian | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: varnishd | Version: trunk
Severity: minor | Keywords:
----------------------+-------------------
I'm parsing the output of param.show -l, particularly the default value
right now.
For user and group, there is no default, however the value is not printed
as blank, but an invisible ^A (ASCII 0x01) is printed instead, which
complicates parsing as I do not expect non-printable characters.
Example result (yeah, some issues in the json still, but ignore that):
{{{
{
"name": "vcc_err_unref",
"value": "on",
"default": "on",
"unit": "bool",
"description": "Unreferenced VCL objects result in
error."
},
{
"name": "vcc_allow_inline_c",
"value": "on",
"default": "on",
"unit": "bool",
"description": "Allow inline C code in VCL."
},
{
"name": "user",
"value": "nobody (65534)",
"default": "^A",
"unit": "",
"description": "The unprivileged user to run as.
Setting thiswill also set "group" to the specified user'sprimary group.NB:
This parameter will not take any effect untilthe child process has been
restarted."
},
}}}
Or, using "varnishadm param.show user | less":
{{{
user nobody (65534)
Default is ^A
The unprivileged user to run as. Setting this
will also set "group" to the specified user's
primary group.
NB: This parameter will not take any effect
until
the child process has been restarted.
}}}
(Note that for my terminal/shell, the ^A is not visible without | less)
This is a medium-fresh master/trunk Varnish.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1243>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list