package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20210517.tbz
md5=00995ebead339d6ec1ba7859c3fc3a58
sha256=5ad39c7fa1a966a2f0a7f6dbb7e82c787439c73482f5f44b3c9fb54b040d36eb
sha512=8dd3f7d4aaabae9aa9ede13edee2b22214c0d2e2780bb08b2ca8ed588d74fc6d9b1908bb31dfee49c949c7cc425fb98897b8e0f11280070ebd99b965908ea133

doc/devkit.core/Devkit_core/Systemd/Daemon/index.html

Module Systemd.DaemonSource

Subset of sd-daemon in ocaml.

The following functionalities are provided:

  • File descriptor passing for socket-based activation
  • Detection of systemd boots
Sourceval booted : bool

true if the system was booted with systemd.

Sourceval 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.

Sourceval listen_fds_lwt : unit -> Lwt_unix.file_descr list

Same as listen_fds but return lwt file descriptors.

OCaml

Innovation. Community. Security.