mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
32d650f9df
You still shouldn't do this (you could get some transient failures), but at least you have a decent chance if you reinstall over a running daemon, instead of getting confusing internal errors if message formats have changed. Changelog-Added: lightningd: we now try to restart if subdaemons are upgraded underneath us. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Fixes: #4346
12 lines
258 B
Bash
Executable File
12 lines
258 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# If this file exists, we send that message back, then sleep.
|
|
if [ $# = 0 ] && [ -f openingd-version ]; then
|
|
# lightningd expects us to write to stdin!
|
|
cat openingd-version >&0
|
|
sleep 10
|
|
exit 0
|
|
fi
|
|
|
|
exec "$(cat openingd-real)" "$@"
|