Files
systemd/test/units/TEST-07-PID1.transient.sh
2025-01-29 04:58:24 +09:00

15 lines
331 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -ex
set -o pipefail
journalctl --sync
TS="$(date '+%H:%M:%S')"
systemd-run -u hogehoge.service sleep infinity
systemctl daemon-reload
systemctl stop hogehoge.service
journalctl --sync
[[ -z "$(journalctl -b -q --since "$TS" -u hogehoge.service -p notice)" ]]