X Tutup
Skip to content

Commit 09db71a

Browse files
keszybzyuwata
authored andcommitted
Recommend drop-ins over modifications to the main config file
As discussed in systemd#18347.
1 parent 71894e1 commit 09db71a

File tree

15 files changed

+122
-106
lines changed

15 files changed

+122
-106
lines changed

man/standard-conf.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
<para>The default configuration is set during compilation, so configuration is only needed when it is
4545
necessary to deviate from those defaults. Initially, the main configuration file in
4646
<filename>/etc/systemd/</filename> contains commented out entries showing the defaults as a guide to the
47-
administrator. Local overrides can be created by editing this file or by creating drop-ins, see below.
48-
</para>
47+
administrator. Local overrides can be created by editing this file or by creating drop-ins, as described
48+
below. Using drop-ins for local configuration is recommended over modifications to the main configuration
49+
file.</para>
4950

5051
<para>In addition to the "main" configuration file, drop-in configuration snippets are read from
5152
<filename>/usr/lib/systemd/*.conf.d/</filename>, <filename>/usr/local/lib/systemd/*.conf.d/</filename>,

src/core/system.conf.in

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
1213
# See systemd-system.conf(5) for details.
1314

src/core/user.conf.in

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# You can override the directives in this file by creating files in
9-
# /etc/systemd/user.conf.d/*.conf.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1012
#
11-
# See systemd-user.conf(5) for details
13+
# See systemd-user.conf(5) for details.
1214

1315
[Manager]
1416
#LogLevel=info

src/coredump/coredump.conf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
1213
# See coredump.conf(5) for details.
1314

src/home/homed.conf

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
12-
# See homed.conf(5) for details
13+
# See homed.conf(5) for details.
1314

1415
[Home]
1516
#DefaultStorage=

src/journal-remote/journal-remote.conf.in

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
12-
# See journal-remote.conf(5) for details
13+
# See journal-remote.conf(5) for details.
1314

1415
[Remote]
1516
# Seal=false

src/journal-remote/journal-upload.conf.in

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
12-
# See journal-upload.conf(5) for details
13+
# See journal-upload.conf(5) for details.
1314

1415
[Upload]
1516
# URL=

src/journal/journald.conf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
1213
# See journald.conf(5) for details.
1314

src/login/logind.conf.in

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
1213
# See logind.conf(5) for details.
1314

src/network/networkd.conf

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# This file is part of systemd.
22
#
3-
# systemd is free software; you can redistribute it and/or modify it
4-
# under the terms of the GNU Lesser General Public License as published by
5-
# the Free Software Foundation; either version 2.1 of the License, or
6-
# (at your option) any later version.
3+
# systemd is free software; you can redistribute it and/or modify it under the
4+
# terms of the GNU Lesser General Public License as published by the Free
5+
# Software Foundation; either version 2.1 of the License, or (at your option)
6+
# any later version.
77
#
8-
# Entries in this file show the compile time defaults.
9-
# You can change settings by editing this file.
10-
# Defaults can be restored by simply deleting this file.
8+
# Entries in this file show the compile time defaults. Local configuration
9+
# should be created by either modifying this file, or by creating "drop-ins" in
10+
# the system.conf.d/ subdirectory. The latter is generally recommended.
11+
# Defaults can be restored by simply deleting this file and all drop-ins.
1112
#
12-
# See networkd.conf(5) for details
13+
# See networkd.conf(5) for details.
1314

1415
[Network]
1516
#SpeedMeter=no

0 commit comments

Comments
 (0)
X Tutup