Merge pull request #5081 from MikeMcQuaid/manpage-updates

Update manpages
This commit is contained in:
Mike McQuaid 2018-10-10 15:37:23 +01:00 committed by GitHub
commit 858610c553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 27 deletions

View File

@ -184,7 +184,7 @@ module Homebrew
end end
def generate_cmd_manpages(glob) def generate_cmd_manpages(glob)
cmd_paths = Pathname.glob(glob) cmd_paths = Pathname.glob(glob).sort
man_page_lines = [] man_page_lines = []
cmd_paths.each do |cmd_path| cmd_paths.each do |cmd_path|
begin begin

View File

@ -1030,26 +1030,26 @@ Override warnings and enable potentially unsafe operations.
* `services` *`command`*: * `services` *`command`*:
Integrates Homebrew formulae with macOS' `launchctl` manager. Integrates Homebrew formulae with macOS' `launchctl` manager.
[`sudo`] `brew services list`: [*`sudo`*] `brew services list`
List all running services for the current user (or root). List all running services for the current user (or *`root`*)
[`sudo`] `brew services run` (*`formula`*|`--all`): [*`sudo`*] `brew services run` *`formula|--all`*
Run the service *`formula`* without registering to launch at login (or boot). Run the service *`formula`* without starting at login (or boot).
[`sudo`] `brew services start` (*`formula`*|`--all`): [*`sudo`*] `brew services` `start` *`formula|--all`*
Start the service *`formula`* immediately and register it to launch at login (or boot). Start the service *`formula`* immediately and register it to launch at login (or *`boot`*).
[`sudo`] `brew services stop` (*`formula`*|`--all`): [*`sudo`*] `brew services` `stop` *`formula|--all`*
Stop the service *`formula`* immediately and unregister it from launching at login (or boot). Stop the service *`formula`* immediately and unregister it from launching at login (or *`boot`*).
[`sudo`] `brew services restart` (*`formula`*|`--all`): [*`sudo`*] `brew services` `restart` *`formula|--all`*
Stop (if necessary) and start the service *`formula`* immediately and register it to launch at login (or boot). Stop (if necessary) and start the service immediately and register it to launch at login (or *`boot`*).
[`sudo`] `brew services cleanup`: [*`sudo`*] `brew services` `cleanup`
Remove all unused services. Remove all unused services.
If `sudo` is passed, operate on `/Library/LaunchDaemons` (started at boot). If `sudo` is passed, operate on `/Library/LaunchDaemons` (started at boot).
Otherwise, operate on `~/Library/LaunchAgents` (started at login). Otherwise, operate on `~/Library/LaunchAgents (started at login)`.
**Homebrew/homebrew-services**: <https://github.com/Homebrew/homebrew-services> **Homebrew/homebrew-services**: <https://github.com/Homebrew/homebrew-services>

View File

@ -1156,31 +1156,25 @@ Install macOS applications distributed as binaries\.
Integrates Homebrew formulae with macOS\' \fBlaunchctl\fR manager\. Integrates Homebrew formulae with macOS\' \fBlaunchctl\fR manager\.
. .
.IP .IP
[\fBsudo\fR] \fBbrew services list\fR [\fIsudo\fR] \fBbrew services list\fR List all running services for the current user (or \fIroot\fR)
List all running services for the current user (or root)\.
. .
.IP .IP
[\fBsudo\fR] \fBbrew services run\fR (\fIformula\fR|\fB\-\-all\fR) [\fIsudo\fR] \fBbrew services run\fR \fIformula|\-\-all\fR Run the service \fIformula\fR without starting at login (or boot)\.
Run the service \fIformula\fR without registering to launch at login (or boot)\.
. .
.IP .IP
[\fBsudo\fR] \fBbrew services start\fR (\fIformula\fR|\fB\-\-all\fR) [\fIsudo\fR] \fBbrew services\fR \fBstart\fR \fIformula|\-\-all\fR Start the service \fIformula\fR immediately and register it to launch at login (or \fIboot\fR)\.
Start the service \fIformula\fR immediately and register it to launch at login (or boot)\.
. .
.IP .IP
[\fBsudo\fR] \fBbrew services stop\fR (\fIformula\fR|\fB\-\-all\fR) [\fIsudo\fR] \fBbrew services\fR \fBstop\fR \fIformula|\-\-all\fR Stop the service \fIformula\fR immediately and unregister it from launching at login (or \fIboot\fR)\.
Stop the service \fIformula\fR immediately and unregister it from launching at login (or boot)\.
. .
.IP .IP
[\fBsudo\fR] \fBbrew services restart\fR (\fIformula\fR|\fB\-\-all\fR) [\fIsudo\fR] \fBbrew services\fR \fBrestart\fR \fIformula|\-\-all\fR Stop (if necessary) and start the service immediately and register it to launch at login (or \fIboot\fR)\.
Stop (if necessary) and start the service \fIformula\fR immediately and register it to launch at login (or boot)\.
. .
.IP .IP
[\fBsudo\fR] \fBbrew services cleanup\fR [\fIsudo\fR] \fBbrew services\fR \fBcleanup\fR Remove all unused services\.
Remove all unused services\.
. .
.IP .IP
If \fBsudo\fR is passed, operate on \fB/Library/LaunchDaemons\fR (started at boot)\. Otherwise, operate on \fB~/Library/LaunchAgents\fR (started at login)\. If \fBsudo\fR is passed, operate on \fB/Library/LaunchDaemons\fR (started at boot)\. Otherwise, operate on \fB~/Library/LaunchAgents (started at login)\fR\.
. .
.IP .IP
\fBHomebrew/homebrew\-services\fR \fBHomebrew/homebrew\-services\fR