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