package ocaml-systemd

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.tar.gz
sha256=9462f1ee3d78dfe7e4cd1e0a344a73efcbd35286921a12a31116929fea73f96e
md5=4179c7a16571a5495e92a5b36791aa12

doc/systemd/Daemon/index.html

Module Daemon

OCaml interface to the libsystemd-daemon library.

module State : sig ... end
val 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

val 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

val booted : unit -> bool

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

OCaml

Innovation. Community. Security.