I have to disagree w/ the approach to change the init script to block
until the satisfied condition has been reached. 99% of the time I
want a call to restart a service to return quickly. Only 1% of the
time, usually during some kind of orchestration activity or testing
activity, that I want to block for desired state that indicates the
action is fully completed.
Even more so, I don't want to actually block all of Chef until this
desired state is reached. there may be additional resources that i
want to continue to be processed after the service is started. for
example, cron tasks to clean up log files and collectd plugins to be
configured to monitor my giant, slow-ass J2EE service. checking for
the :until condition to be met should be deferred until the end of the
chef run or at least b4 other handlers run, like
minitest-chef-handler. A chef_handler is the correct place for them to
live.
erikh's wait lwrp might do the job. However, I want there to be the
possibility to have multiple wait resources in chef run. I can easily
Archive powered by MHonArc 2.6.16.