diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-19 10:56:04 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-22 10:03:07 +0100 |
commit | f70e6fb471a4eeed8e2a4a7c608beabbb0aba8be (patch) | |
tree | 6800a167f4b0bd7ddc40e9bcd14c23e4f4f50891 /man/systemd-system.conf.xml | |
parent | shared/conf-parser: allow more than one location of the main config file (diff) | |
download | systemd-f70e6fb471a4eeed8e2a4a7c608beabbb0aba8be.tar.xz systemd-f70e6fb471a4eeed8e2a4a7c608beabbb0aba8be.zip |
manager: read ~/.config/systemd/user.conf in user mode
This changes the paths we read user manager config from in two ways:
- split-usr-root paths are dropped. The user manager is a poster boy for
non-early-boot, so reading dropins only from /usr is appropriate.
- we look at ~/.config/systemd/user.conf. Users should be allowed to override
their own config.
As user managers become more and more used, it becomes more important for users
to customize their own daemon. By reading from ~/.config, this is possible
without privileges.
Diffstat (limited to 'man/systemd-system.conf.xml')
-rw-r--r-- | man/systemd-system.conf.xml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index 075666ac6b..0811e1909e 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -31,7 +31,9 @@ <filename>/etc/systemd/system.conf.d/*.conf</filename>, <filename>/run/systemd/system.conf.d/*.conf</filename>, <filename>/usr/lib/systemd/system.conf.d/*.conf</filename></para> - <para><filename>/etc/systemd/user.conf</filename>, + + <para><filename>~/.config/systemd/user.conf</filename>, + <filename>/etc/systemd/user.conf</filename>, <filename>/etc/systemd/user.conf.d/*.conf</filename>, <filename>/run/systemd/user.conf.d/*.conf</filename>, <filename>/usr/lib/systemd/user.conf.d/*.conf</filename></para> @@ -40,16 +42,16 @@ <refsect1> <title>Description</title> - <para>When run as a system instance, systemd interprets the - configuration file <filename>system.conf</filename> and the files - in <filename>system.conf.d</filename> directories; when run as a - user instance, systemd interprets the configuration file - <filename>user.conf</filename> and the files in - <filename>user.conf.d</filename> directories. These configuration - files contain a few settings controlling basic manager - operations. See - <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>7</manvolnum></citerefentry> - for a general description of the syntax.</para> + <para>When run as a system instance, <command>systemd</command> interprets the configuration file + <filename>system.conf</filename> and the files in <filename>system.conf.d</filename> directories; when + run as a user instance, it interprets the configuration file <filename>user.conf</filename> (either in + the home directory of the user, or if not found, under <filename>/etc/systemd/</filename>) and the files + in <filename>user.conf.d</filename> directories. These configuration files contain a few settings + controlling basic manager operations.</para> + + <para>See + <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>7</manvolnum></citerefentry> for a + general description of the syntax.</para> </refsect1> <xi:include href="standard-conf.xml" xpointer="main-conf" /> |