mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 21:13:01 +07:00
22 lines
349 B
Bash
Executable File
22 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
# Verify service readiness notification
|
|
# shellcheck disable=SC2034
|
|
|
|
set -eu
|
|
#set -x
|
|
|
|
#DEBUG=true
|
|
FINIT_ARGS="finit.cond=testserv"
|
|
TEST_DIR=$(dirname "$0")
|
|
|
|
# shellcheck source=/dev/null
|
|
. "$TEST_DIR/lib/setup.sh"
|
|
|
|
run "initctl"
|
|
run "initctl status testserv"
|
|
run "initctl cond dump"
|
|
sleep 1
|
|
retry 'assert_norestart testserv' 1 1
|
|
|
|
return 0
|