#464 systemd recommendations for modifying configuration
Closed: Fixed Opened 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.


Current guidelines: https://fedoraproject.org/wiki/Packaging:Systemd#EnvironmentFiles_and_support_for_.2Fetc.2Fsysconfig_files

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):

  • 464 systemd recommendations for modifying configuration (geppetto,


    16:29:21)
  • LINK: https://fedorahosted.org/fpc/ticket/464 (geppetto, 16:29:29)
  • LINK:
    https://fedoraproject.org/wiki/Packaging:Systemd#EnvironmentFiles_and_support_for_.2Fetc.2Fsysconfig_files
    (tibbs|w, 16:44:31)
  • ACTION: Remove penultimate paragraph, and the next "Either approach
    is valid in Fedora.". (+1:6, 0:0, -1:0) (geppetto, 16:47:49)

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.

Metadata