Process running in backgroup using recipe

Hi All,
i am using execute block to start process of bamboo agent in backgroud, but somehow due to some reason bamboo agent process stops after some times and my recipe ends.

execute ‘bamboo agent’ do
command ""

i would like to know is there any better way to handle this? can i check the status of process inside recipe at least for some specific time (60 seconds) before completing the recipe.

You really should not do this, but instead create a service to run the bamboo agent, and use chef to manage that service.
Alternatively, check out the bamboo cookbook, , and use the bamboo::agent recipe.