mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
27 lines
532 B
Bash
27 lines
532 B
Bash
|
#!/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
|