lib/contrast/tasks/service.rb in contrast-agent-6.1.0 vs lib/contrast/tasks/service.rb in contrast-agent-6.1.1

- old
+ new

@@ -9,11 +9,11 @@ # forked from the application module Service extend Rake::DSL # Start the service if it is not already running def self.start_service - puts 'Starting Contrast Service' + puts('Starting Contrast Service') service_log = ::Contrast::CONTRAST_SERVICE.logger_path if File.writable?(service_log) spawn('contrast_service', out: File::NULL, err: service_log) else spawn('contrast_service', %i[out err] => File::NULL) @@ -21,10 +21,10 @@ watcher = Contrast::Agent::Thread.new do sleep(0.05) until Contrast::Utils::OS.running? end watcher.join(1) - puts Contrast::Utils::OS.running? ? 'Contrast Service started successfully.' : 'Contrast Service did not start.' + puts(Contrast::Utils::OS.running? ? 'Contrast Service started successfully.' : 'Contrast Service did not start.') end # Stop the service if it is running def self.stop_service pid = `ps aux | grep contrast-servic[e] | awk '{print $2}'`