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

Add services for Bitcoin, Dash, Parity and Monero #24576

Closed
wants to merge 6 commits into from

Conversation

MDeltaX
Copy link

@MDeltaX MDeltaX commented Apr 2, 2017

Requires #24396

@mention-bot
Copy link

@koenigmaximilian, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @joachifm and @offlinehacker to be potential reviewers.

default = defaultUser;
description = userDescription;
type = types.str;
};
Copy link
Member

Choose a reason for hiding this comment

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

since static user/group names are allocated, it is not really configurable. I would just drop these two options here and in every other service.

Copy link
Author

Choose a reason for hiding this comment

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

I don't really get what you mean. You can set user with services.bitcoind.user or services.dashd.user
Static is only the default value.

description = opts.user.description;
home = cfg.dataDir;
createHome = true;
});
Copy link
Member

Choose a reason for hiding this comment

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

Does this really requires a home in "/home"? Usually system user a created in /var/lib/. This directory can be created on service start.

Copy link
Author

Choose a reason for hiding this comment

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

It sets cfg.dataDir as home directory (not /home)
parity/ethash requires a valid home dir: https://github.com/paritytech/parity/blob/8404edb656693270ec1cd3956d204f625d28ec7c/ethash/src/compute.rs#L109

Copy link
Author

@MDeltaX MDeltaX Apr 2, 2017

Choose a reason for hiding this comment

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

And the reason I chose the data directory and not a path in /var/lib is that I'm used to have the data dir on an encrypted partition and don't want information to be leaked by ethash

Copy link
Contributor

@0xABAB 0xABAB left a comment

Choose a reason for hiding this comment

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

No surprises here.

@bobvanderlinden
Copy link
Member

This PR still seems relevant. Is there motivation to make this up-to-date with master?

@prusnak
Copy link
Member

prusnak commented Oct 27, 2019

@MDeltaX please rebase or close the PR

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/115

@aanderse
Copy link
Member

Please feel free to reopen or start a new PR if there is any interest.

@aanderse aanderse closed this Mar 14, 2020
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

8 participants