-
Notifications
You must be signed in to change notification settings - Fork 120
chore: Add validator service file #1638
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a66ebb8
Add validator service file
sergerad e0242ce
Refactor debian packaging
sergerad 568cc2b
update validator service file
sergerad 17335c0
Validator user and dir
sergerad 0bfdd39
Merge branch 'next' of github.com:0xMiden/miden-node into sergerad-va…
sergerad e56ee69
Fix chmod
sergerad 57b21ea
Fix packaging rm
sergerad 0a190eb
Fix mv
sergerad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [Unit] | ||
| Description=Miden validator | ||
| Wants=network-online.target | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
|
|
||
| [Service] | ||
| Type=exec | ||
| Environment="OTEL_SERVICE_NAME=miden-validator" | ||
| EnvironmentFile=/lib/systemd/system/miden-validator.env | ||
| ExecStart=/usr/bin/miden-node validator start | ||
| WorkingDirectory=/opt/miden-node | ||
| User=miden-validator | ||
| RestartSec=5 | ||
| Restart=always | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of a meta question, but we should probably distinguish this from the node? In case both node + validator run on the same instance.
A different way of doing things is to have common
/opt/miden/directory and then each service gets its own/opt/miden/<service>folder in there. But that gets dodgy..? Or maybe not.Essentially, I think I recall that each "org" should have its own
/optdirectory. But I could be mistaken. I think part of the problem would then be that we probably need amidenuser group to own the/opt/midendirectory, which would then let themiden-node,miden-validatorusers act within that group. Or we just have a singlemidenuser which handles all miden services.Probably I'm overthinking things :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable but would opt to add validator in the current scheme we have and do a migration for all existing packages/services separately to this work