]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/units/testsuite-47.sh
scope: on unified, make sure to unwatch all PIDs once they've been moved to the cgrou...
[thirdparty/systemd.git] / test / units / testsuite-47.sh
CommitLineData
bdfa9657 1#!/usr/bin/env bash
c1566ef0
AZ
2set -ex
3set -o pipefail
4
5systemd-analyze log-level debug
6systemd-analyze log-target console
7
bdfa9657 8systemctl start testsuite-47-repro
2e7090e9 9sleep 4
bdfa9657 10systemctl status testsuite-47-repro
c1566ef0
AZ
11
12leaked_pid=$(cat /leakedtestpid)
13
bdfa9657 14systemctl stop testsuite-47-repro
2e7090e9 15sleep 4
c1566ef0
AZ
16
17# Leaked PID will still be around if we're buggy.
18# I personally prefer to see 42.
19ps -p "$leaked_pid" && exit 42
20
21systemd-analyze log-level info
22
23echo OK > /testok
24
25exit 0