From 4f0acdb36615d7e27bef9d951001daf3addc2f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 18 Jul 2019 10:14:52 +0200 Subject: [PATCH] man: add note about systemctl stop return value Fixes #13104. (I know a lot more could be added to that man page. This patch only addresses that once specific complaint.) --- man/systemctl.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index 6f93e1cd2c..0f06a88f42 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -816,8 +816,14 @@ Sun 2017-02-26 20:57:49 EST 2h 3min left Sun 2017-02-26 11:56:36 EST 6h ago stop PATTERN - Stop (deactivate) one or more units specified on the - command line. + Stop (deactivate) one or more units specified on the command line. + + This command will fail if the unit does exist or if stopping of the unit is prohibited (see + RefuseManualStop= in + systemd.unit5). + It will not fail if any of the commands configured to stop the unit + (ExecStop=, etc.) fail, because the manager will still forcibly terminate the + unit.