Skip to main content

has_socket

Function has_socket 

Source
pub fn has_socket() -> bool
Expand description

Check if running under systemd socket activation

Returns true if:

  1. System was booted with systemd
  2. LISTEN_FDS environment variable is set