Skip to main content

run_hook

Function run_hook 

Source
pub fn run_hook(
    kind: &str,
    service: &str,
    script: &Path,
    service_home: &Path,
) -> Result<()>
Expand description

Run a pre/post backup or restore hook with the service’s .env loaded, mirroring how quadlet ExecStartPre/Post scripts see it.