mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
20 lines
373 B
Bash
Executable File
20 lines
373 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
systemd-analyze log-level debug
|
|
|
|
systemd-run -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
|