1#!/usr/bin/env bash 2# SPDX-License-Identifier: LGPL-2.1-or-later 3set -eux 4set -o pipefail 5 6systemd-analyze log-level debug 7systemd-analyze log-target console 8 9systemctl start testsuite-47-repro 10sleep 4 11systemctl status testsuite-47-repro 12 13leaked_pid=$(cat /leakedtestpid) 14 15systemctl stop testsuite-47-repro 16sleep 4 17 18# Leaked PID will still be around if we're buggy. 19# I personally prefer to see 42. 20ps -p "$leaked_pid" && exit 42 21 22systemd-analyze log-level info 23 24echo OK >/testok 25 26exit 0 27