startup_regtest: fix clnrest detection.

The .py extension gets stripped from the plugin name, so it didn't work.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-11-28 16:25:01 +10:30
parent 39fbced71e
commit 020bd97a5a

View file

@ -145,8 +145,8 @@ wait_for_lightningd() {
clnrest_status() {
logfile="$1"
active_str="plugin-clnrest.py: REST Server is starting"
disabled_str="plugin-clnrest.py: Killing plugin: disabled itself"
active_str="plugin-clnrest: REST Server is starting"
disabled_str="plugin-clnrest: Killing plugin: disabled itself"
if grep -q "$active_str" "$logfile"; then
echo "active"