package ocaml-systemd

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.tar.gz
sha256=afd43edb570b07827e9d3edc8509019917993d893446e37891dd917bfde85b3b
md5=f9206f1284addca555934100b1e68928

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.