#!/usr/bin/env bash # SPDX-License-Identifier: LGPL-2.1-or-later set -eux set -o pipefail at_exit() { set +e systemctl stop mask-test.service rm -rf /run/systemd/system/mask-test.service* systemctl daemon-reload rm -f /tmp/should-not-exist-by-* } trap at_exit EXIT rm -f /tmp/should-not-exist-by-* mkdir -p /run/systemd/system/mask-test.service.d cat >/run/systemd/system/mask-test.service </run/systemd/system/mask-test.service.d/10-stop.conf <