core-lightning/tests/plugins/badopeningd.sh
Rusty Russell 67a391f8d0 lightningd: pass --developer down to plugins, subdaemons when it set.
They might need to know this before they do anything, so cmdline seems most
natural.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-09-21 20:08:24 +09:30

12 lines
271 B
Bash
Executable File

#! /bin/sh
# If this file exists, we send that message back, then sleep.
if [ "$1" != "--version" ] && [ -f openingd-version ]; then
# lightningd expects us to write to stdin!
cat openingd-version >&0
sleep 10
exit 0
fi
exec "$(cat openingd-real)" "$@"