Sha256: 98f53a1aad6e00b7f0ef9b0ed0a588d022668c3bd237996a811ce7caee0d825f
Contents?: true
Size: 377 Bytes
Versions: 10
Compression:
Stored size: 377 Bytes
Contents
class Eye::Trigger::StopChildren < Eye::Trigger # Kill process children when parent process crashed, or stopped: # # trigger :stop_children param :timeout, [Integer, Float], nil, 60 # default on stopped, crashed param_default :event, [:stopped, :crashed] def check(_trans) debug { 'stopping children' } process.children.values.pmap(&:stop) end end
Version data entries
10 entries across 10 versions & 1 rubygems