snippetbashTip
brew services — Manage background services with `launchctl` on macOS or `systemctl` on Linux. More information: <htt
Viewed 0 times
brew servicescommandlaunchctlservicesclimanagebackgroundwith
Problem
How to use the
brew services command: Manage background services with launchctl on macOS or systemctl on Linux. More information: <https://docs.brew.sh/Manpage#services-subcommand>.Solution
brew services — Manage background services with launchctl on macOS or systemctl on Linux. More information: <https://docs.brew.sh/Manpage#services-subcommand>.List all managed services for the current user:
brew servicesList more information about all managed services:
brew services info --allStart a service immediately and register it to launch at login (or boot):
brew services start {{formula}}Stop the service immediately and unregister it from launching at login (or boot):
brew services stop {{formula}}Stop (if necessary) and start the service immediately and register it to launch at login (or boot):
brew services restart {{formula}}Remove all unused services:
brew services cleanupCode Snippets
List all managed services for the current user
brew servicesList more information about all managed services
brew services info --allStart a service immediately and register it to launch at login (or boot)
brew services start {{formula}}Stop the service immediately and unregister it from launching at login (or boot)
brew services stop {{formula}}Stop (if necessary) and start the service immediately and register it to launch at login (or boot)
brew services restart {{formula}}Context
tldr-pages: common/brew services
Revisions (0)
No revisions yet.