mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
contrib: allow stderr printing for startup_regtest
Moves the 'daemon'ization from c-lightning to the process level, so that stderr print messages appear in the terminal. Easier debugging! Changelog-None
This commit is contained in:
committed by
Christian Decker
parent
632b42da40
commit
9845eb41a9
@@ -66,7 +66,6 @@ mkdir -p /tmp/l1-regtest /tmp/l2-regtest
|
|||||||
# Node one config
|
# Node one config
|
||||||
cat << 'EOF' > /tmp/l1-regtest/config
|
cat << 'EOF' > /tmp/l1-regtest/config
|
||||||
network=regtest
|
network=regtest
|
||||||
daemon
|
|
||||||
log-level=debug
|
log-level=debug
|
||||||
log-file=/tmp/l1-regtest/log
|
log-file=/tmp/l1-regtest/log
|
||||||
addr=localhost:6060
|
addr=localhost:6060
|
||||||
@@ -74,7 +73,6 @@ EOF
|
|||||||
|
|
||||||
cat << 'EOF' > /tmp/l2-regtest/config
|
cat << 'EOF' > /tmp/l2-regtest/config
|
||||||
network=regtest
|
network=regtest
|
||||||
daemon
|
|
||||||
log-level=debug
|
log-level=debug
|
||||||
log-file=/tmp/l2-regtest/log
|
log-file=/tmp/l2-regtest/log
|
||||||
addr=localhost:9090
|
addr=localhost:9090
|
||||||
@@ -101,9 +99,9 @@ start_ln() {
|
|||||||
|
|
||||||
# Start the lightning nodes
|
# Start the lightning nodes
|
||||||
test -f /tmp/l1-regtest/lightningd-regtest.pid || \
|
test -f /tmp/l1-regtest/lightningd-regtest.pid || \
|
||||||
"$LIGHTNINGD" --lightning-dir=/tmp/l1-regtest
|
"$LIGHTNINGD" --lightning-dir=/tmp/l1-regtest &
|
||||||
test -f /tmp/l2-regtest/lightningd-regtest.pid || \
|
test -f /tmp/l2-regtest/lightningd-regtest.pid || \
|
||||||
"$LIGHTNINGD" --lightning-dir=/tmp/l2-regtest
|
"$LIGHTNINGD" --lightning-dir=/tmp/l2-regtest &
|
||||||
|
|
||||||
# Give a hint.
|
# Give a hint.
|
||||||
echo "Commands: l1-cli, l2-cli, l[1|2]-log, bt-cli, stop_ln, cleanup_ln"
|
echo "Commands: l1-cli, l2-cli, l[1|2]-log, bt-cli, stop_ln, cleanup_ln"
|
||||||
|
|||||||
Reference in New Issue
Block a user