Chef: mmake sure a service is listennig on network
问题 I'm using this mongodb3 cookbook in order to install a mongodb instance. I'm trying to perform an script when service starts: execute "Add Mongo Users" do command "mongo #{host}:#{port} /tmp/mongo.setup.users.js" subscribes :run, 'service[mongod]', :delayed end I'm getting this error: ==> Expected process to exit with [0], but received '1' ==> ---- Begin output of mongo localhost:30158 /tmp/mongo.setup.users.js ---- ==> STDOUT: MongoDB shell version v3.4.2 ==> connecting to: localhost:30158 =