From 1830ac51a4ad1d82a198e587207df451b581c821 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 27 Jun 2018 14:31:42 +0200 Subject: Revert "systemctl: when removing enablement or mask symlinks, cover both /run and /etc" Having systemctl disable/unmask remove all symlinks in /etc and /run is unintuitive and breaks existing use cases. systemctl should behave symmetrically. A "systemctl --runtime unmask" should undo a "systemctl --runtime mask" action. Say you have a service, which was masked by the admin in /etc. If you temporarily want to mask the execution of the service (say in a script), you'd create a runtime mask via "systemctl --runtime mask". It is is now no longer possible to undo this temporary mask without nuking the admin changes, unless you start rm'ing files manually. While it is useful to be able to remove all enablement/mask symlinks in one go, this should be done via a separate command line switch, like "systemctl --all unmask". This reverts commit 4910b35078ad24dcbc63f372b2fee087640201d0. Fixes: #9393 --- man/systemctl.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'man/systemctl.xml') diff --git a/man/systemctl.xml b/man/systemctl.xml index 2be5a838e0..b9077c55a1 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -555,19 +555,19 @@ - When used with set-property, make changes only - temporarily, so that they are lost on the next reboot. - - Similarily, when used with enable, mask, - edit and related commands, make temporary changes, which are lost on - the next reboot. Changes are not made in subdirectories of /etc, but - in /run. The immediate effect is identical, however since the latter + When used with enable, + disable, edit, + (and related commands), make changes only temporarily, so + that they are lost on the next reboot. This will have the + effect that changes are not made in subdirectories of + /etc but in /run, + with identical immediate effects, however, since the latter is lost on reboot, the changes are lost too. - Note: this option cannot be used with disable, - unmask, preset, or preset-all, - because those operations sometimes need to remove symlinks under /etc - to have the desired effect, which would cause a persistent change. + Similarly, when used with + set-property, make changes only + temporarily, so that they are lost on the next + reboot. -- cgit v1.2.1