blob: 52bc2a4a15ece8e5af98a8e583f3cf9455f9a6a7 [file] [log] [blame] [raw]
#!/usr/bin/env bash
set -ex
systemd-analyze log-level debug
systemd-run --wait -p LogNamespace=foobar echo "hello world"
journalctl --namespace=foobar --sync
journalctl --namespace=foobar > /tmp/hello-world
journalctl > /tmp/no-hello-world
grep "hello world" /tmp/hello-world
! grep "hello world" /tmp/no-hello-world
systemd-analyze log-level info
echo OK > /testok
exit 0