Skip to content

Commit

Permalink
Merge pull request #5111 from mheon/service_to_system_service
Browse files Browse the repository at this point in the history
Move podman-service to podman-system-service
  • Loading branch information
openshift-merge-robot authored Feb 6, 2020
2 parents 3b47bda + 41b735a commit 35eb238
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 21 deletions.
11 changes: 7 additions & 4 deletions cmd/podman/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ func getMainCommands() []*cobra.Command {
if len(_varlinkCommand.Use) > 0 {
rootCommands = append(rootCommands, _varlinkCommand)
}
if len(_serviceCommand.Use) > 0 {
rootCommands = append(rootCommands, _serviceCommand)
}
return rootCommands
}

Expand Down Expand Up @@ -71,9 +68,15 @@ func getTrustSubCommands() []*cobra.Command {

// Commands that the local client implements
func getSystemSubCommands() []*cobra.Command {
return []*cobra.Command{
systemCommands := []*cobra.Command{
_renumberCommand,
_dfSystemCommand,
_migrateCommand,
}

if len(_serviceCommand.Use) > 0 {
systemCommands = append(systemCommands, _serviceCommand)
}

return systemCommands
}
26 changes: 13 additions & 13 deletions completions/bash/podman
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,19 @@ _podman_system_prune() {
esac
}

_podman_system_service() {
local options_with_args="
-t
--timeout
"
local boolean_options="
--help
-h
--varlink
"
_complete_ "$options_with_args" "$boolean_options"
}

_podman_system() {
local boolean_options="
--help
Expand Down Expand Up @@ -1755,19 +1768,6 @@ _podman_search() {
_complete_ "$options_with_args" "$boolean_options"
}

_podman_service() {
local options_with_args="
-t
--timeout
"
local boolean_options="
--help
-h
--varlink
"
_complete_ "$options_with_args" "$boolean_options"
}

_podman_unmount() {
_podman_umount $@
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
% podman-service(1)

## NAME
podman\-service - Run an API service
podman\-system\-service - Run an API service

## SYNOPSIS
**podman service** [*options*]
**podman system service** [*options*]

## DESCRIPTION
The **podman service** command creates a listening service that will answer API calls for Podman. You may
The **podman system service** command creates a listening service that will answer API calls for Podman. You may
optionally provide an endpoint for the API in URI form. For example, *unix://tmp/foobar.sock* or *tcp:localhost:8080*.
If no endpoint is provided, defaults will be used. The default endpoint for a rootfull
service is *unix:/run/podman/podman.sock* and rootless is *unix:/$XDG_RUNTIME_DIR/podman/podman.sock* (for
Expand Down
2 changes: 2 additions & 0 deletions docs/source/markdown/podman-system.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ The system command allows you to manage the podman systems
| prune | [podman-system-prune(1)](podman-system-prune.1.md) | Remove all unused container, image and volume data. |
| renumber | [podman-system-renumber(1)](podman-system-renumber.1.md)| Migrate lock numbers to handle a change in maximum number of locks. |
| reset | [podman-system-reset(1)](podman-system-reset.1.md) | Reset storage back to initial state. |
| service | [podman-service(1)](podman-system-service.1.md) | Run an API service |


## SEE ALSO
podman(1)
1 change: 0 additions & 1 deletion docs/source/markdown/podman.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ the exit codes follow the `chroot` standard, see below:
| [podman-rmi(1)](podman-rmi.1.md) | Removes one or more locally stored images. |
| [podman-run(1)](podman-run.1.md) | Run a command in a new container. |
| [podman-save(1)](podman-save.1.md) | Save an image to a container archive. |
| [podman-service(1)](podman-service.1.md) | Run an API service |
| [podman-search(1)](podman-search.1.md) | Search a registry for an image. |
| [podman-start(1)](podman-start.1.md) | Start one or more containers. |
| [podman-stats(1)](podman-stats.1.md) | Display a live stream of one or more container's resource usage statistics. |
Expand Down

0 comments on commit 35eb238

Please sign in to comment.