ROBSD-HOOK(5)

NAME
robsd-hook - robsd hook configuration

DESCRIPTION
All robsd utilities can optionally execute a command after each non-skipped step. The command to execute is configured using the hook configuration variable and may contain one or many arguments passed to execvp(3). For each argument, variables on the form “${variable}” are interpolated where variable can refer to a configuration variable, see robsd-config(8). In addition, the following variables are also available:

step-exit
    exit code of the step
step-name
    name of the step

Exiting with code 125 from a hook signals that the step should be retried again. All other exit codes are ignored.

EXAMPLES

    hook { "echo" "step ${step-name} done" }

SEE ALSO
robsd-config(8)

AUTHORS
Anton Lindqvist <anton@basename.se>