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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -