opscode/chef — pull request #2398 by robredpath (2014-11-11 10:37:25+00:00)
Title: Make the --pid / -P option to chef-client set the :lockfile config opt

In brief:
````
strace -s4096 -f -o chef_client_strace chef-client --pid /tmp/mypidfile.pid
root@example.com [~]# grep mypidfile.pid chef_client_strace
22657 execve("/usr/bin/chef-client", ["chef-client", "--pid", "/tmp/mypidfile.pid"], [/* 27 vars */]) = 0
root@example.com [~]# grep chef-client-running.pid chef_client_strace | grep open
22662 open("/var/chef/cache/chef-client-running.pid", O_RDWR|O_CREAT|O_APPEND, 0666) = 9
````

It appears that the `--pid` option is ignored by chef-client; the option `:pid_file` is never used, but `:lockfile` is used to acquire a `RunLock`. This PR fixes the issue by making the `--pid/-P` opt set `Chef::Config.lockfile`