Development kit - general purpose library
val booted : bool

true if the system was booted with systemd.

val listen_fds : unit -> Unix.file_descr list

Returns file descriptors that have been passed by systemd.

This function call ensures that the FD_CLOEXEC flag is set for the passed file descriptors, to make sure they are not passed on to child processes. If FD_CLOEXEC shall not be set, the caller needs to unset it after this call for all file descriptors that are used.

val listen_fds_lwt : unit -> Lwt_unix.file_descr list

Same as listen_fds but return lwt file descriptors.