Bug 2216793 - systemd should create and own .conf.d directories
Summary: systemd should create and own .conf.d directories
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.8
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: systemd maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-22 15:24 UTC by Orion Poplawski
Modified: 2023-08-14 11:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-160507 0 None None None 2023-06-22 15:25:14 UTC
Red Hat Issue Tracker RHELPLAN-160508 0 None None None 2023-06-22 15:25:19 UTC

Description Orion Poplawski 2023-06-22 15:24:19 UTC
Description of problem:

man systemd-system.conf mentions:

/etc/systemd/system.conf.d and /usr/lib/systemd/system.conf.d
/etc/systemd/user.conf.d and /usr/lib/systemd/user.conf.d

systemd should create and own these directories.

Version-Release number of selected component (if applicable):
systemd-239-74.el8_8.x86_64

$ rpm -qf /etc/systemd/system.conf.d  /usr/lib/systemd/system.conf.d /etc/systemd/user.conf.d /usr/lib/systemd/user.conf.d
file /etc/systemd/system.conf.d is not owned by any package
error: file /usr/lib/systemd/system.conf.d: No such file or directory
error: file /etc/systemd/user.conf.d: No such file or directory
error: file /usr/lib/systemd/user.conf.d: No such file or directory

Comment 1 David Tardon 2023-06-26 07:54:21 UTC
(In reply to Orion Poplawski from comment #0)
> man systemd-system.conf mentions:
> 
> /etc/systemd/system.conf.d and /usr/lib/systemd/system.conf.d
> /etc/systemd/user.conf.d and /usr/lib/systemd/user.conf.d
> 
> systemd should create

No, it shouldn't. They are not needed until someone--either an admin or another package--needs to place a config. override there. Creating them unconditionally just adds needless clutter.

> and own these directories.

Yes, it probably should. But why limit it to just these config. dirs? Every systemd binary that does have a config. file (e.g., systemd-journald or systemd-coredump) reads respective config. dirs too.

Comment 2 Orion Poplawski 2023-07-16 03:20:27 UTC
I have found that the presence of various *.d directories in /etc is a very good indication that it is possible to use them.  Many packages create empty dirs as a guide to admins.  But I can see the opposite view as well.


Note You need to log in before you can comment on or make changes to this bug.