wallet-server: update suggested systemd unit #370
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
campaign-blocker
consider soon
Content
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry.tech#370
Loading…
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use
Type=Forking
. By default,Type=Simple
is used and it expects that the daemon stays forking in the foreground. However, lbrycrdd does the opposite and forks/goes to background. This confuses systemd a little bit:So basically it thinks that the unit stops working instantly. When the correct type is used, systemd should be able to handle this situations, along with restarts, properly.
See also: AUR systemd service
Reopening https://github.com/lbryio/lbry.tech/pull/368
This is not the case. The last version I tried was
LBRYcrd Core Daemon version v0.17.3.3-7afc4c4
Exactly as in documentation:
ExecStart=/home/user/lbrycrdd -datadir="/home/user/.lbrycrd"
thanks for following up. i'll give this a try
ok I dug into this and here's my conclusions:
I'm still not seeing how lbrycrd forks by default. The fork happens here, and only if
-daemon
is set. Please double-check that you don't have that flag in your config when you're running lbrycrd, or maybe point me to the code where it forks without that flag.That said, you're right that
Type=forking
is the better way to set up the systemd unit because it gives lbrycrd a chance to start and signal readiness correctly. In fact that's the way bitcoin recommends doing it:29cc82db45/contrib/init/bitcoind.service
I'll add in the recommended setup from that service file and merge this PR. Thanks for sticking with me on it. I'd love to show you some appreciation for your help.