mirror of
https://github.com/systemd/systemd.git
synced 2025-01-07 21:18:41 +03:00
27 lines
532 B
Bash
Executable File
27 lines
532 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
# shellcheck disable=SC2016
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
systemd-notify --status="Test starts, waiting for 5 seconds"
|
|
sleep 5
|
|
|
|
(
|
|
systemd-notify --pid=auto
|
|
systemd-notify "NOTIFYACCESS=main"
|
|
|
|
systemd-notify --status="Sending READY=1 in an unpriviledged process"
|
|
(
|
|
sleep 0.1
|
|
systemd-notify --ready
|
|
)
|
|
sleep 10
|
|
|
|
systemd-notify "MAINPID=$$"
|
|
)
|
|
|
|
systemd-notify --ready --status="OK"
|
|
systemd-notify "NOTIFYACCESS=none"
|
|
sleep infinity
|