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

Shutdown dcrd.exe via RPC #298

Closed
2 tasks
marcopeereboom opened this issue Aug 3, 2016 · 0 comments · Fixed by #311
Closed
2 tasks

Shutdown dcrd.exe via RPC #298

marcopeereboom opened this issue Aug 3, 2016 · 0 comments · Fixed by #311
Assignees
Milestone

Comments

@marcopeereboom
Copy link
Member

In order to enhance paymetheus UX we need a more deliberate shutdown process in dcrd.exe.

Action items:

  • Audit the code that all relevant subsystems are being shutdown and add code to handle this
  • Make RPC server always reply with status "shutting down" and a status qualifier indicating what is up and what is down. Upon RPC server stop command this must be the first thing that happens.
@marcopeereboom marcopeereboom added this to the 0.4.0 milestone Aug 3, 2016
@marcopeereboom marcopeereboom modified the milestones: 0.5.0, 0.4.0 Aug 15, 2016
jrick added a commit that referenced this issue Aug 31, 2016
Rewrite startup/shutdown logic to simplify shutdown signaling.  All
cleanup is now run from deferred functions in the main function.

Add two new config options to set the read and write ends of a pair of
pipes.  This is used as a simple mechanism for a parent process to
communicate with, observe, and manage the lifetime of a child dcrd
process.  When the RX (read end) pipe is closed, clean shutdown
automatically begins.

Add a new flag --lifetimeevents to create and send lifetime event
notifications over the TX (write end) pipe during bringup and
shutdown.  This allows the parent process to observe which subsystems
are currently starting, running, and stopping.

Fixes #297.
Fixes #298.
jrick added a commit that referenced this issue Aug 31, 2016
Rewrite startup/shutdown logic to simplify shutdown signaling.  All
cleanup is now run from deferred functions in the main function.

Add two new config options to set the read and write ends of a pair of
pipes.  This is used as a simple mechanism for a parent process to
communicate with, observe, and manage the lifetime of a child dcrd
process.  When the RX (read end) pipe is closed, clean shutdown
automatically begins.

Add a new flag --lifetimeevents to create and send lifetime event
notifications over the TX (write end) pipe during bringup and
shutdown.  This allows the parent process to observe which subsystems
are currently starting, running, and stopping.

Fixes #297.
Fixes #298.
@marcopeereboom marcopeereboom modified the milestones: 0.4.0, 0.5.0 Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants