#!/usr/bin/env bash # pre action or use ExecStartPre /usr/bin/restic check # post action or adapt ExecStartPost