Module: KStor::Systemd
- Defined in:
- lib/kstor/systemd.rb
Overview
Collection of methods for systemd integration.
Class Method Summary collapse
Class Method Details
.service_ready ⇒ Object
16 17 18 |
# File 'lib/kstor/systemd.rb', line 16 def service_ready SdNotify.ready end |
.service_stopping ⇒ Object
20 21 22 |
# File 'lib/kstor/systemd.rb', line 20 def service_stopping SdNotify.stopping end |
.socket ⇒ Object
9 10 11 12 13 14 |
# File 'lib/kstor/systemd.rb', line 9 def socket listen_pid = ENV['LISTEN_PID'].to_i return nil unless Process.pid == listen_pid Socket.for_fd(3) end |