package ocaml-systemd

  1. Overview
  2. Docs
OCaml module for native access to the systemd facilities

Install

Dune Dependency

Authors

Maintainers

Sources

1.3.tar.gz
sha256=717acee7f71bc04ff3bb53c0af1231bd5c8112d4f2c1830562d5087cf1d4b152
sha512=9e69281cee9e26ee96bf33dc7624c6866021b2f227214c0e1376c101c77b245ab52c1a044c0b7be87d7a20beea81bb69fb33df450c7311b8fec3a608e650d7c2

doc/systemd/Daemon/index.html

Module DaemonSource

OCaml interface to the libsystemd-daemon library.

Sourcemodule State : sig ... end
Sourceval notify : ?unset_environment:bool -> State.t -> bool

notify ?unset_environment state sends a message to the init system about a status change. If the status was sent return true. May raise Unix_error

Sourceval listen_fds : ?unset_environment:bool -> unit -> Unix.file_descr list

listen_fds ?unset_environment returns the number of descriptors passed to this process by the init system as part of the socket-based activation logic or raises Unix_error

Sourceval booted : unit -> bool

booted Return true if this system is running under systemd. or raises Unix_error

OCaml

Innovation. Community. Security.