summaryrefslogtreecommitdiff
path: root/man/portablectl.xml
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2020-01-23 16:50:15 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-02-07 17:09:05 +0100
commite2c1ddcc492f7d94fd0bdaec719916c62787be44 (patch)
tree5691c9b7454a665a524dbcb64e9298a168b5b9aa /man/portablectl.xml
parentc3b41d8811317aa47cc6090809df1740838960d0 (diff)
downloadsystemd-e2c1ddcc492f7d94fd0bdaec719916c62787be44.tar.gz
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
Diffstat (limited to 'man/portablectl.xml')
-rw-r--r--man/portablectl.xml21
1 files changed, 20 insertions, 1 deletions
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 @@
<para>By default, after the unit files are attached the service manager's configuration is reloaded, except
when <option>--no-reload</option> is specified (see above). This ensures that the new units made available to
the service manager are seen by it.</para>
+
+ <para>If <option>--now</option> and/or <option>--enable</option> are passed, the portable service(s) are
+ immediately started and/or enabled after attaching the image.</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><command>detach</command> <replaceable>IMAGE</replaceable></term>
+ <term><command>detach</command> <replaceable>IMAGE</replaceable> [<replaceable>PREFIX…</replaceable>]</term>
<listitem><para>Detaches a portable service image from the host. This undoes the operations executed by the
<command>attach</command> 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 <command>attach</command> also to
<command>detach</command>.</para></listitem>
+
+ <para>If <option>--now</option> and/or <option>--enable</option> 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 <command>attach</command>.</para>
</varlistentry>
<varlistentry>
@@ -311,6 +318,18 @@
contents of the image.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>--enable</option></term>
+
+ <listitem><para>Immediately enable/disable the portable service after attaching/detaching.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--now</option></term>
+
+ <listitem><para>Immediately start/stop the portable service after attaching/before detaching.</para></listitem>
+ </varlistentry>
+
<xi:include href="user-system-options.xml" xpointer="host" />
<xi:include href="user-system-options.xml" xpointer="machine" />