lib/commands/stop.rb in nutella_framework-0.4.18 vs lib/commands/stop.rb in nutella_framework-0.4.19

- old
+ new

@@ -32,10 +32,11 @@ end # If running on the internal broker, stop it if needed if Nutella.runlist.empty? stop_internal_broker + stop_mongo end # Output success message print_success_message(app_id, run_id, 'stopped') end @@ -74,9 +75,15 @@ end def stop_internal_broker pid_file_path = "#{Nutella.config['broker_dir']}/bin/.pid" + kill_process_with_pid pid_file_path + end + + + def stop_mongo + pid_file_path = "#{Nutella.config['config_dir']}.mongo_pid" kill_process_with_pid pid_file_path end # Does the process pid file exist?