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

tahoe service: use ExecStart instead of script #20554

Closed
wants to merge 1 commit into from

Conversation

rycee
Copy link
Member

@rycee rycee commented Nov 19, 2016

Motivation for this change

To avoid having an unnecessary Bash instance running for each Tahoe node. An alternative way to solve this would be to change the script variable to read exec tahoe start … but since it is only a single command I figured ExecStart is more straightforward.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Since only a single command is necessary to start Tahoe it is sufficient
to use ExecStart and thereby skip starting up Bash (and leaving it
running).
@mention-bot
Copy link

@rycee, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MostAwesomeDude and @ericsagnes to be potential reviewers.

@grahamc
Copy link
Member

grahamc commented Nov 19, 2016

You've run this, and can verify it works as a service?

@rycee
Copy link
Member Author

rycee commented Nov 19, 2016

Yeah, I'm successfully running this at the moment, albeit back ported to 16.09.

@rycee
Copy link
Member Author

rycee commented Nov 25, 2016

Since there weren't any major objections I've merged this in commit 8a424e3.

@rycee rycee closed this Nov 25, 2016
@rycee rycee deleted the tahoe/use-execstart branch November 25, 2016 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants