Skip to content

P2poolv2 process management - #30

Draft
R27-pixel wants to merge 20 commits into
p2poolv2:mainfrom
R27-pixel:p2poolv2-process-management
Draft

P2poolv2 process management#30
R27-pixel wants to merge 20 commits into
p2poolv2:mainfrom
R27-pixel:p2poolv2-process-management

Conversation

@R27-pixel

Copy link
Copy Markdown
Contributor

Summary

Adds start/stop/restart process management for the p2poolv2 node, mirroring the Bitcoin Core process management from #.

What's included

  • New p2poolv2_path setting (falls back to PATH lookup when unset, same as bitcoind_path)
  • p2pool_process_manager on App reusing the existing generic ProcessManager, with start/stop/restart/poll/shutdown
  • Spawns the node with --config <p2pool_conf_path>, matching the real systemd unit's ExecStart
  • New "Process" tab on P2Pool Status with [s] Start, [t] Stop, [r] Restart
  • New "P2Poolv2 executable" field in Settings
  • p2poolv2 now shuts down gracefully alongside Bitcoin Core on quit

Testing

  • Unit tests for command construction, missing-executable failure, idle-stop no-op
  • Unit tests for the new Settings field and Process tab key handling
  • Render test for the Process tab
image

@R27-pixel
R27-pixel marked this pull request as draft July 25, 2026 14:58
@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

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.

1 participant