From e2c1ddcc492f7d94fd0bdaec719916c62787be44 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 23 Jan 2020 16:50:15 +0000 Subject: portablectl: add --now and --enable to attach/detach Add shortcuts to enable and start, or disable and stop, portable services with a single portablectl command. Allow to pass a filter on detach, as it's necessary to call GetImageMetadata to get the unit names associated with an image. Fixes #10232 --- man/portablectl.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'man/portablectl.xml') diff --git a/man/portablectl.xml b/man/portablectl.xml index 88cf36ae25..d1790db2fa 100644 --- a/man/portablectl.xml +++ b/man/portablectl.xml @@ -133,11 +133,14 @@ By default, after the unit files are attached the service manager's configuration is reloaded, except when is specified (see above). This ensures that the new units made available to the service manager are seen by it. + + If and/or are passed, the portable service(s) are + immediately started and/or enabled after attaching the image. - detach IMAGE + detach IMAGE [PREFIX…] Detaches a portable service image from the host. This undoes the operations executed by the attach command above, and removes the unit file copies, drop-ins and image symlink @@ -145,6 +148,10 @@ component of it (i.e. the file or directory name itself, not the path to it) is used for finding matching unit files. This is a convencience feature to allow all arguments passed as attach also to detach. + + If and/or are passed, the portable service(s) are + immediately started and/or enabled before detaching the image. Prefix(es) are also accepted, to be used in + case the unit names do not match the image name as described in the attach. @@ -311,6 +318,18 @@ contents of the image. + + + + Immediately enable/disable the portable service after attaching/detaching. + + + + + + Immediately start/stop the portable service after attaching/before detaching. + + -- cgit v1.2.3