New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR - Issue 49875 - Move SystemD service config to a drop-in file #3469
Comments
Comment from vashirov (@vashirov) at 2019-05-29 17:17:54 I was thinking of dropping |
Comment from firstyear (@Firstyear) at 2019-05-30 04:17:47 It's not possible as you can't make certain sections "drop in" IIRC. I experimented with this and chose the split file method to avoid this. I could be mistaken here or it's changed since, but previous attempts were not valid unit files :( |
Comment from firstyear (@Firstyear) at 2019-05-30 04:18:46 Is it possible to show an "example" drop in, or link to the systemd.template.service.custom.conf.in somehow to guide admins to the "how" to achivee this? |
Comment from vashirov (@vashirov) at 2019-05-30 06:46:57
I'm sorry to disappoint, but this is exactly what drop-in files are for: to override certain parameters in certain sections. This functionality is in systemd for quite a while. Here's an example:
Now let's create an override:
This will open an
We can point them to |
Comment from mhonek (@kenoh) at 2019-05-30 13:42:25 1 new commit added
|
Comment from mhonek (@kenoh) at 2019-05-30 13:45:12 I've added a change as Viktor suggested. @Firstyear Please have a look. This drop-in file will be installed in case the server is built with a sanitizer and automatically picked up by systemd. |
Comment from firstyear (@Firstyear) at 2019-06-03 09:49:08
This is not my point. I know how drop in's work. My point was that drop in files may not function for some configuration sections in the unitfile. IIRC if you try to drop in over So if this is working for you, and tested, then great. But bear in mind there are some things that can not be drop-in overriden ...
I think I mean that our unitfile should say something like:
|
Comment from mhonek (@kenoh) at 2019-06-03 10:17:01
IIUC what your concern is, you can do e.g.
At least me and Mark have successfully tested this to find it working as expected.
The main .service file contains pointer to the drop-in file where supposed handling is described -- do you find this sufficient? Suggestions to particular changes are welcome. :) |
Comment from firstyear (@Firstyear) at 2019-06-03 10:46:38 Yep, that's fine, if it's all tested then my concerns are covered. |
Comment from mhonek (@kenoh) at 2019-06-03 10:48:19 rebased onto 4981ebf6a44cb0c3dd1a091786ee0a58eeeaccfe |
Comment from mhonek (@kenoh) at 2019-06-03 14:32:59 rebased onto 10bffac |
Comment from mhonek (@kenoh) at 2019-06-03 14:35:05 Pull-Request has been merged by kenoh |
Patch |
Cloned from Pagure Pull-Request: https://pagure.io/389-ds-base/pull-request/50411
Bug Description:
Runtime configuration options are mixed into the service specification
which should seldom be changed by users.
Fix Description:
Move the runtime configuration options into a drop-in file. These options
are then automatically pull in by SystemD.
Additional Info:
Erasing the default values of the mentioned options to implicitly pull in
system defaults which are more sane nowadays.
Related Resolves: #2934
Author: Matus Honek kenoh@redhat.com
Review by: ???
The text was updated successfully, but these errors were encountered: