#464 systemd recommendations for modifying configuration
Closed: Fixed None Opened 4 years ago by sundaram.

systemd guidelines has this section

"Although environment files are easy to use, upstream systemd recommends a different approach. Their recommendation for administrators who need to reconfigure systemd .service files is to copy them from /lib/systemd/system to /etc/systemd/system and modify them there. Unit files in /etc/systemd/system override those in /lib/systemd/system if they otherwise carry the same name."

This is not what upstream recommends anymore.

Refer to https://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F and more importantly the man page referenced for upstream recommendations. Please change the guidelines to use this reference.


Possible text:

Their recommendation for administrators who need to reconfigure systemd .service files is to create a /etc/systemd/system/foo.service.d directory and place a .conf file there with the desired unit file configuration options. See https://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F for more details.

We talked about this in today's meeting (​http://meetbot.fedoraproject.org/fedora-meeting-1/2014-10-23/fpc.2014-10-23-16.01.txt):

Please also modify the following note

"Systemd unit .service files must not be marked as %config files. If the user wants to reconfigure a .service file he should copy the .service file from /lib/systemd/system to /etc/systemd/system and edit it there. Unit files in /etc/systemd/system override those in /lib/systemd/system if they carry the same name"

I've removed the two indicated paragraphs, and also removed the outdated (and inappropriate for the guidelines) text about users altering .service files.

I don't think this needs an announcement since it's just the removal of outdated text so I'm just going to close this ticket.

Login to comment on this ticket.

Metadata