Update service.rb

added checks for STOPPING when stop is called and STARTING when start is called.
Update service.rb

get the template to run now, rather than being added to the end of the resource stack.
Update service.rb

ensures that `supervisorctl update` is called immediately upon manual execution of the `template`
[COOK-3805] Raise an exception if supervisorctl status output not recognized.

Signed-off-by: Sean OMeara <someara@opscode.com>
Version bump to v0.4.10
Version bump to v0.4.11
Allow setting of unix_http_server chmod and chown in supervisord.conf
Merge pull request #36 from FundingCircle/add_unix_http_server_options

[COOK-3957] Allow setting of unix_http_server chmod and chown in supervisord.conf
Update service.rb

assign the execute to a variable named e so that we can run it if/when the template changes.
Merge pull request #26 from tejaycar/COOK-3655

[COOK-3655] Fix errors on start and stop actions
Hey look, using octal numbers is bad.

This gets put into the template.
When starting or stopping a service is possible that the service was in process to start or to stop.
With this commit the process waits until the service reaches the required state.
Refactored 'wait_til_state' function to simplify it.
Made 'max_tries' configurable.
Made 'max_tries' configurable
Merge pull request #38 from alambike/wait_til_state

Wait to start or stop a service in corresponding action if it was in state of "STARTING" or "STOPPING"
Added /etc/rc.d/init.d/supervisor for CentOS

Tested on CentOS 5.9 and 6.3
Use the CentOS init file on RedHat and Fedora systems

Removed repeated templates by placing platform specific templates in
default/<family>.
Use attributes to find the supervisord executable for init scripts

The location of the supervisord executable depends on whether
python was installed from source or from packages.
Switch to using the same code path for the non-smartos platforms.
Rename the redhat templates directory to rhel.