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

Cannot brew stop a started service #198483

Open
3 tasks done
suifengpiaoyang opened this issue Nov 21, 2024 · 0 comments
Open
3 tasks done

Cannot brew stop a started service #198483

suifengpiaoyang opened this issue Nov 21, 2024 · 0 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@suifengpiaoyang
Copy link

brew doctor output

% brew doctor
Your system is ready to brew.

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

% brew config
HOMEBREW_VERSION: 4.4.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: cc0b5d6d05d1f3af5b2f53e9fbb1e7bfa0c332ab
Last commit: 4 days ago
Core tap JSON: 20 Nov 08:35 UTC
Core cask tap JSON: 20 Nov 08:35 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: 16.1
Rosetta 2: false

What were you trying to do (and why)?

  • reinstall brew and services for many times
  • use brew doctor to check the error

What happened (include all command output)?

 % brew services start php
==> Successfully started `php` (label: homebrew.mxcl.php)
 % brew services list
Name  Status  User  File
httpd none    root  
mysql none          
php   started x ~/Library/LaunchAgents/homebrew.mxcl.php.plist
% brew services stop php
Stopping `php`... (might take a while)
Warning: Unable to stop `php` (label: homebrew.mxcl.php)

Can use launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php.plist to stop php. When httpd service has started, I don't kown how to stop it.

What did you expect to happen?

stop the service which has started

Step-by-step reproduction instructions (by running brew commands)

% brew services start php
==> Successfully started `php` (label: homebrew.mxcl.php)
 % brew services list
Name  Status  User  File
httpd none    root  
mysql none          
php   started x ~/Library/LaunchAgents/homebrew.mxcl.php.plist
% brew services stop php
Stopping `php`... (might take a while)
Warning: Unable to stop `php` (label: homebrew.mxcl.php)
@suifengpiaoyang suifengpiaoyang added the bug Reproducible Homebrew/homebrew-core bug label Nov 21, 2024
@MikeMcQuaid MikeMcQuaid transferred this issue from Homebrew/brew Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

1 participant