Skip to content

Better detection of started/stopped services #1

@NanoSector

Description

@NanoSector

Brewed tries to detect stopped services by watching for file deletion events on the plist file specified by Homebrew:
https://github.com/Yoshi2889/Brewed/blob/e0f244be15d33be41f7e49431bdc3afe3b6a5908/Brewed/Model/ManagedServices.swift#L39-L42

While this works in many cases, it only works for stopped services. Right now services which get started after Brewed won't get detected.

This may be solvable by letting Brewed guess plist locations; these seem to be set in the format homebrew.mxcl.{formula}.

Tasks:

  • Make brewed detect services stopped via brew services stop, when started through either run or start
  • Make Brewed detect services started via brew services start
  • Make Brewed detect services started via brew services run
  • Do not pointlessly watch plist files in /usr/local/opt

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions