module SystemD
Overview
Wrapper for libsystemd http://man7.org/linux/man-pages/man3/sd_pid_notify_with_fds.3.html http://man7.org/linux/man-pages/man3/sd_listen_fds_with_names.3.html
Defined in:
systemd.crClass Method Summary
-
.is_socket?(fd : Int, family : Socket::Family, type : Socket::Type, listening : Int) : Bool
Checks if a FD refers to a socket of the specified type https://www.man7.org/linux/man-pages/man3/sd_is_socket_unix.3.html
- .is_tcp_listener?(fd : Int)
- .is_tcp_socket?(fd : Int)
- .is_udp_listener?(fd : Int)
- .is_udp_socket?(fd : Int)
- .is_unix_dgram_listener?(fd : Int)
- .is_unix_dgram_socket?(fd : Int)
- .is_unix_stream_listener?(fd : Int)
- .is_unix_stream_socket?(fd : Int)
- .listen_fds
- .listen_fds_with_names
- .notify(message = "READY=1\n") : Bool
- .notify_ready
- .notify_reloading
- .notify_status(status : String)
- .notify_stopping
- .remove_fds(name : String)
- .store_fds(fds : Array(Int32), name : String) : Bool
- .store_fds(fds : Array(Int32)) : Bool
- .watchdog
Class Method Detail
def self.is_socket?(fd : Int, family : Socket::Family, type : Socket::Type, listening : Int) : Bool
#
Checks if a FD refers to a socket of the specified type https://www.man7.org/linux/man-pages/man3/sd_is_socket_unix.3.html