From c2434a61f2a7ae2380ec4de0cd7128e3b9bffbac Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 24 Jan 2023 01:20:14 +0800 Subject: machinectl: add --now to start/stop containers when enabling/disabling Closes #26154 --- man/machinectl.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'man/machinectl.xml') diff --git a/man/machinectl.xml b/man/machinectl.xml index 9f3e0921a4..2ecbe0f0ab 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -234,7 +234,11 @@ systemd-nspawn1. This enables or disables systemd-nspawn@.service, instantiated for the specified machine name, similarly to the effect of systemctl enable or systemctl - disable on the service name. + disable on the service name. + + This command implicitly reloads the system manager configuration after completing the operation. + Note that this command does not implicitly start or power off the containers that are being operated on. + If this is desired, combine the command with the switch. @@ -776,6 +780,17 @@ signature. + + + + + When used with enable or disable, + the containers will also be started or powered off. The start or poweroff + operation is only carried out when the respective enable or disable + operation has been successful. + + + -- cgit v1.2.1