summaryrefslogtreecommitdiffstats
path: root/presets/user
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-02-03 15:45:07 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-02-04 05:59:31 +0100
commit61c3e2c8bfc28cea5b52d8643fac3d85f4c571d2 (patch)
treecf74c4c1ef0b40ccc59cd7cef364e7040d01e2c1 /presets/user
parentMerge pull request #14589 from keszybz/sysctl-downgrade-messages (diff)
downloadsystemd-61c3e2c8bfc28cea5b52d8643fac3d85f4c571d2.tar.xz
systemd-61c3e2c8bfc28cea5b52d8643fac3d85f4c571d2.zip
presets: "disable" all passive targets by default
Officially we default to a "enable *", even though pretty much everybody overrides this with "disable *". We have a bunch of targets and services which should not be enabled by default. In case the default policy is not overriden, our passive units would be enabled by presets, which is generally not useful at all. So let's explicitly mark them as disabled. Note that this effectively changes very little. E.g. on Fedora, all the units listed in this patch were "disabled" already. Fixes #14648.
Diffstat (limited to 'presets/user')
-rw-r--r--presets/user/90-systemd.preset11
1 files changed, 9 insertions, 2 deletions
diff --git a/presets/user/90-systemd.preset b/presets/user/90-systemd.preset
index 22fe41fc33..fd402c8c11 100644
--- a/presets/user/90-systemd.preset
+++ b/presets/user/90-systemd.preset
@@ -7,8 +7,15 @@
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
-# These ones should be enabled by default, even if distributions
-# generally follow a default-off policy.
+# Settings for systemd units distributed with systemd itself. These should be
+# enabled by default, even if the distribution follows a general default-off
+# policy.
enable systemd-tmpfiles-setup.service
enable systemd-tmpfiles-clean.timer
+
+# Passive targets: always off by default, since they should only be pulled in
+# by dependent units.
+
+disable graphical-session-pre.target
+disable graphical-session.target