mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
20 lines
365 B
Bash
Executable File
20 lines
365 B
Bash
Executable File
#!/bin/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
|