Sha256: 4525c2cf50fecf9f4f545330dec844956f430dfaa3898e63fa843d18bd5261b9
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true class ThinkingSphinx::Commands::StartAttached < ThinkingSphinx::Commands::Base def call FileUtils.mkdir_p configuration.indices_location unless pid = fork controller.start :verbose => options[:verbose], :nodetach => true end Signal.trap('TERM') { Process.kill(:TERM, pid) } Signal.trap('INT') { Process.kill(:TERM, pid) } Process.wait(pid) end private def type 'start' end end
Version data entries
3 entries across 3 versions & 1 rubygems