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 mode for watching PID and exit if it dies #141

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

poszu
Copy link
Collaborator

@poszu poszu commented Oct 26, 2023

Added --watch-pid=<PID> CLI argument. When passed, the post-service will watch this PID and quit when it's not alive.

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #141 (d2a73be) into main (3a61505) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #141   +/-   ##
=======================================
  Coverage   94.20%   94.20%           
=======================================
  Files          22       22           
  Lines        2933     2933           
=======================================
  Hits         2763     2763           
  Misses        170      170           

@poszu poszu requested review from fasmat and dshulyak October 26, 2023 11:34
@poszu poszu merged commit dec7a17 into main Oct 26, 2023
37 checks passed
@poszu poszu deleted the watch-parent-pid-mode branch October 26, 2023 13:42
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Oct 26, 2023
## Motivation
In spacemeshos/post-rs#141 the post service was extended to shut down when a process with a given PID exits. This PR integrates the change.

Merge after spacemeshos/post-rs#141

## Changes
- Update Post Supervisor to pass PID
- Log errors in post supervisor instead of returning them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Oct 26, 2023
## Motivation
In spacemeshos/post-rs#141 the post service was extended to shut down when a process with a given PID exits. This PR integrates the change.

Merge after spacemeshos/post-rs#141

## Changes
- Update Post Supervisor to pass PID
- Log errors in post supervisor instead of returning them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Oct 26, 2023
## Motivation
In spacemeshos/post-rs#141 the post service was extended to shut down when a process with a given PID exits. This PR integrates the change.

Merge after spacemeshos/post-rs#141

## Changes
- Update Post Supervisor to pass PID
- Log errors in post supervisor instead of returning them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Oct 26, 2023
## Motivation
In spacemeshos/post-rs#141 the post service was extended to shut down when a process with a given PID exits. This PR integrates the change.

Merge after spacemeshos/post-rs#141

## Changes
- Update Post Supervisor to pass PID
- Log errors in post supervisor instead of returning them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Oct 26, 2023
## Motivation
In spacemeshos/post-rs#141 the post service was extended to shut down when a process with a given PID exits. This PR integrates the change.

Merge after spacemeshos/post-rs#141

## Changes
- Update Post Supervisor to pass PID
- Log errors in post supervisor instead of returning them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Oct 26, 2023
## Motivation
In spacemeshos/post-rs#141 the post service was extended to shut down when a process with a given PID exits. This PR integrates the change.

Merge after spacemeshos/post-rs#141

## Changes
- Update Post Supervisor to pass PID
- Log errors in post supervisor instead of returning them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed
- [x] Update [changelog](../CHANGELOG.md) as needed
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.

2 participants