Method: Corosync::Quorum#start
- Defined in:
- lib/corosync/quorum.rb
#start(initial_callback = false) ⇒ Boolean
Start monitoring for changes to quorum status. This basically just enables triggering the callback. If not called you can still call #quorate? to get quorum state.
75 76 77 78 79 80 81 82 83 |
# File 'lib/corosync/quorum.rb', line 75 def start(initial_callback = false) connect if @handle.nil? Corosync.cs_send(:quorum_trackstart, @handle, Corosync::CS_TRACK_CHANGES) if initial_callback and @callback_notify then @callback_notify.call(quorate?, []) end end |