Class: Yast::SystemdSocketClass::Socket

Inherits:
Yast::SystemdUnit show all
Defined in:
library/systemd/src/modules/systemd_socket.rb

Constant Summary

Constants inherited from Yast::SystemdUnit

Yast::SystemdUnit::ACTIVE_STATES, Yast::SystemdUnit::DEFAULT_PROPMAP, Yast::SystemdUnit::SUPPORTED_STATES, Yast::SystemdUnit::SUPPORTED_TYPES

Instance Attribute Summary

Attributes inherited from Yast::SystemdUnit

#error, #name, #properties, #propmap, #unit_name, #unit_type

Instance Method Summary collapse

Methods inherited from Yast::SystemdUnit

#command, #disable, #enable, #initialize, #refresh!, #reload, #reload_or_restart, #reload_or_try_restart, #restart, #show, #start, #status, #stop, #try_restart

Constructor Details

This class inherits a constructor from Yast::SystemdUnit

Instance Method Details

#listening?Boolean



93
94
95
# File 'library/systemd/src/modules/systemd_socket.rb', line 93

def listening?
  properties.sub_state == "listening"
end