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

Added support for running services fully backgrounded on macOS #13510

Merged
merged 3 commits into from Jul 19, 2022
Merged

Added support for running services fully backgrounded on macOS #13510

merged 3 commits into from Jul 19, 2022

Conversation

GottemHams
Copy link

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

This is the second part of a two-part contribution, with the first one being here. All the important info can be found there too. =] The existing automated tests should already cover the changes, although I did have to update the expect() stuff.

# necessarily if it should run in a specific session type. Like database services could run with ProcessType
# Interactive so they have no resource limitations enforced upon them, but they aren't really interactive in the
# general sense.
base[:LimitLoadToSessionType] = %w[Aqua Background LoginWindow StandardIO System]
Copy link
Member

Choose a reason for hiding this comment

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

Should StandardIO and System be here too? In what situation would those be applicable?

Copy link
Author

Choose a reason for hiding this comment

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

Well I noticed in lib/service/system.rb that you may also return the system domain instead of a user one. So the System type would enable you to keep using that.

As for StandardIO: that should be used if you run something without even a GUI session being available somewhere. Like logging in to an Aqua session and then starting a service through SSH would give Background, but rebooting your Mac and SSHing in before even logging in to Aqua should give you StandardIO. It might be an old flag though because in my tests I always got Background and never StandardIO.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Pending CI passing on Homebrew/homebrew-services#485

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Let's give this a go. Any maintainer should feel free to quickly revert on a single user report with an issue.

@MikeMcQuaid MikeMcQuaid merged commit 6615cd9 into Homebrew:master Jul 19, 2022
@github-actions github-actions bot added the outdated PR was locked due to age label Aug 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants