caching - Unable to restart varnish using "service varnish restart" -


i made changes in "/etc/default/varnish" vcl file "/etc/varnish/default.vcl" , therefore want restart varnish.

but i'm unable figure out what's wrong. spent more hour lookijng no luck. following details:

nish@styx:~$ sudo service varnish restart [sudo] password nish:   * stopping http accelerator varnishd                                    [fail]   * starting http accelerator varnishd                                    [fail]  many arguments (\...) usage: varnishd [options] -a address:port              # http listen address , port -b address:port              # backend address , port                              #    -b <hostname_or_ip>                              #    -b '<hostname_or_ip>:<port_or_service>' -c                           # print vcl code compiled c language -d                           # debug -f file                      # vcl script -f                           # run in foreground -h kind[,hashoptions]        # hash specification                              #   -h critbit [default]                              #   -h simple_list                              #   -h classic                              #   -h classic,<buckets> -i identity                  # identity of varnish instance -l shl,free,fill             # size of shared memory file                              #   shl: space shl records [80m]                              #   free: space other allocations [1m]                              #   fill: prefill new file [+] -m address:port              # reverse cli destination. -n dir                       # varnishd working directory -p file                      # pid file -p param=value               # set parameter -s kind[,storageoptions]     # backend storage specification                              #   -s malloc                              #   -s file  [default: use /tmp]                              #   -s file,<dir_or_file>                              #   -s file,<dir_or_file>,<size>                              #   -s persist{experimenta}                              #   -s file,<dir_or_file>,<size>,<granularity> -t                           # default ttl -s secret-file               # secret file cli authentication -t address:port              # telnet listen address , port -v                           # version -w int[,int[,int]]           # number of worker threads                              #   -w <fixed_count>                              #   -w min,max                              #   -w min,max,timeout [default: -w2,500,300] -u user                      # priviledge separation user id 

fixed problem removing line breaks "/etc/default/varnish" file.

daemon_opts="-a :80 \              -t localhost:1234 \              -f /etc/varnish/default.vcl \               -s malloc,256m" 

to

daemon_opts="-a :80 -t localhost:1234 -f /etc/varnish/default.vcl -s malloc,256m" 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -