russ/lacquer — pull request #14 by tscolari (2012-09-28 14:17:19+00:00)
Title: New 'use_sudo' option to varnishd.yml

I found my self in a case where I needed to run varnishd using sudo.
This pull request creates a new option to varnishd.yml: `use_sudo` (defaults to false).

When `use_sudo: true` it will use sudo before varnishd_cmd, and to kill it.
Also, because the process is from a different user, the `Process.kill` wont work. So I had to do a more unclean solution to check if the process is running.