protolambda / rollup-node-experiments

rollup node experiments
MIT License
15 stars 5 forks source link

Add/improve convenience scripts #5

Closed norswap closed 2 years ago

norswap commented 2 years ago

Includes a full build script (install.sh) and a pre-build configuration script (setup.sh).

The *-killable.sh scripts (may need to change that name) have two purposes:

  1. If you retrieve their PID in another script, and use it to kill them, they will ensure the underlying node is also killed.
  2. They redirect their output to log files in the logs directory.

This makes it pretty useful to:

We could consider replacing the normal scripts with those (to still log in the terminal, you can just do e.g. tail -f logs/l1-geth.log). But doesn't matter so much.

A discrepancy between start-l1-geth-killable.sh and start-l1-geth.sh: I don't re-import the signer each time the command is run.