Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes to local network scripts #282

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Conversation

geoff-vball
Copy link
Contributor

@geoff-vball geoff-vball commented Feb 9, 2024

Why this should be merged

Fixes some minor issues in the local network scripts, including having one script hanging after exit.

How this works

How this was tested

Locally

How is this documented

@geoff-vball geoff-vball force-pushed the gstuart/tweak-setup-scripts branch from 1f89034 to 4ac8bc9 Compare February 9, 2024 17:54
# Set up the trap to catch the SIGINT signal (CTRL+C)
# Note that the output of the cleanup function defined in run_setup.sh does not appear if CTRL+C is used to kill this script,
# but the function does in fact run as expected.
trap cleanup SIGTERM
trap cleanup SIGINT
trap cleanup SIGTERM SIGINT

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was the script hanging after CTRL+C? I thought that's what the trap was handling, and don't think ive had that issue previously

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it was hanging on line 64 if docker errored out. CTRL+C got it to exit, but you shouldn't have to in that situation.

@geoff-vball geoff-vball merged commit 250cc1c into main Feb 13, 2024
15 checks passed
@geoff-vball geoff-vball deleted the gstuart/tweak-setup-scripts branch February 13, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants