Skip to content

Conversation

cgwalters
Copy link
Member

I'm checking over the codebase for places we fork children; doing so from a library means we may end up printing to stdout/stderr of our caller, which we shouldn't do.

  • Also add an error prefix with information about the service if we fail

I'm checking over the codebase for places we fork children; doing
so from a library means we may end up printing to stdout/stderr
of our caller, which we shouldn't do.

- Also add an error prefix with information about the service
  if we fail

Signed-off-by: Colin Walters <walters@verbum.org>
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request makes forked systemctl calls quieter by default and improves error messaging. The changes add the --quiet flag and a constant for the service name. I've suggested improvements to ensure stdout is also redirected and to clarify the error message.

@cgwalters cgwalters enabled auto-merge June 30, 2025 22:35
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cgwalters cgwalters disabled auto-merge July 1, 2025 18:16
@cgwalters cgwalters merged commit 3382b5e into ostreedev:main Jul 1, 2025
24 of 25 checks passed
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