package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.tar.gz
sha256=28f4c68127579b86c5f50e01e444e8c51f0543bc5472c2dcac28993bc88aa756
md5=0317493fa5cc1054a882ceca59ce5992

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.