package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Oxbow_state.Init_scriptSource

Sourcetype t = {
  1. pid : int;
}
Sourceval resolve : ?override_path:string -> unit -> string option

resolve ?override_path () is the resolved init-script path: 1. override_path if given 2. $XDG_CONFIG_HOME/oxbow/init 3. $HOME/.config/oxbow/init Only a path that exists and is executable counts; otherwise None.

Sourceval fork : cmd:string -> t

fork ~cmd runs cmd with /bin/sh -c cmd in a fresh session and returns the child pid.

Sourceval shutdown : t -> unit

shutdown script signals SIGTERM to the script's whole process group. Swallows ESRCH (already gone); warns on other errno (e.g. EPERM).