Add cascade runner (a helper for local server instances) #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
summary
Adds a script in
scripts/utilto simplify runningcascade_server,cascade_client, andcascade_fuse_client.The available flags are:
example usage:
notes
This PR also changes
src/service/server.cpp, the cascade server, to have the option to quit onSIGINT(just like how the fuse client quits). To not break any existing usage, it is enabled through the--signalflag. Without it, the cascade server will quit on<Enter>as usual.This change was added because, without it, usage of the cascade runner script involves some complicated sleep logic to avoid sending input that would trigger the cascade server process to end.
See: https://stackoverflow.com/questions/9575473/running-a-process-that-waits-on-input-in-the-background-without-it-pausing-and. The working sleep logic is commented out in the cascade runner script in case the
--signalflag should not be added.The changed files in the
src/service/fusefolder are from formatting (clang-format) and typo fixes. There are no semantic changes.improvements
pkill -SIGINT. A safer way would be to store the PIDs in a file and kill them that way.node_info.logfile for viewing. This should be configurable.PATHenvvar with the binaries frombuild-Release, which may not be necessary.jqanddaselto modify the configs. The config looks like a mix of toml with some json in some of the values.