ruby - Start mongos with chef -


i'm trying launch mongos using chef calling /etc/init.d/mongos start.

my recipe:

# service.rb  service 'mongos'   supports(start: true, stop: true, status: true, restart: true,            reload: true, condrestart: true, :'force-reload' => true)   action :nothing end 

and

# default.rb  include_recipe 'mongos::service' service 'mongos'   action :start end 

but fails when run recipe, because doesn't run command sudo.

how can make chef run service command sudo?

thanks.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -