lexerdev/splunkstorm — pull request #4 by yannh (2013-02-12 16:41:31+00:00)
Title: Fix license autoaccept¨

Hello, this was a really nasty one because of Chef's poor error messages. The start will only be executed if the status command works fine... and the status commands asks to accept the license.

I've fixed it for me by checking for the PID file, which also seem like a cleaner way to check if the daemon is running.

This was the not very helpful debug message from chef:
[Tue, 12 Feb 2013 15:30:06 +0000] DEBUG: Processing execute[/opt/splunkforwarder/bin/splunk start --accept-license --answer-yes] on xxxxxxxx

Hope this helps
Thanks
Do you agree with this license? [y/n]: