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
Post a Comment