package socket-daemon

  1. Overview
  2. Docs
type handlers = {
  1. on_stop : Lwt_io.output_channel -> unit Lwt.t;
  2. on_restart : Lwt_io.output_channel -> unit Lwt.t;
  3. on_set_log_level : Lwt_io.output_channel -> int -> unit Lwt.t;
  4. on_status : unit -> string Lwt.t;
  5. on_other : Lwt_io.input_channel -> Lwt_io.output_channel -> Sdaemon_common.client_msg -> unit Lwt.t;
}
val default_handlers : handlers
type server
val shutdown_server : server -> unit
val daemonize : handlers -> Sdaemon_common.socket_spec -> (server -> 'a Lwt.t) -> 'a Lwt.t
OCaml

Innovation. Community. Security.