[Pkg-sssd-devel] Bug#960672: Bug#960672: sssd: Update service file
Timo Aaltonen
tjaalton at debian.org
Wed Jul 1 10:36:45 BST 2020
On 1.7.2020 11.57, Jörg Behrmann wrote:
> On 01.07.20 09:14, Timo Aaltonen wrote:
>> I'm not doing this, instead I'll add DEBUG_LOGGER template to
>> /etc/default/sssd and mention that DAEMON_OPTS is only used for the
>> initscript.
>>
>
> I would like to argue, that the total removal of the coupling of the
> service file and /etc/defaults/sssd might be the better way forward.
>
> The current state is that /etc/defaults/sssd has no effect on
> sssd.service. I don't think it's a good idea to introduce it now, since
> it's a hidden layer of configuration that cannot be accessed via
> `systemctl cat`.
>
> It's perfectly fine for init scripts to use /etc/defaults, as there is
> no better mechanism to alter configuration, but for systemd unit files
> drop-ins are far superior, since `systemctl cat` aggregates them,
> shifting the burden of piecing together the configuration away from admins.
>
> Furthermore, using drop-ins in /lib/systemd/system/sssd.service.d would
> allow to carry Debian changes to the default config in files that could
> be changed atomically on updates without interfering with locally
> supplied changes.
Feel free to suggest that upstream then, they still use sysconfig for
the daemon configuration, and expect us to have /etc/default/sssd, as
shown in the commit that introduced DEBUG_LOGGER:
commit a7277fecf7a65ab6c83b36f009c558cdfbf997d2
Author: Lukas Slebodnik <lslebodn at redhat.com>
Date: Mon Oct 23 18:03:46 2017 +0200
SYSTEMD: Replace parameter --debug-to-files with ${DEBUG_LOGGER}
Users can set variable DEBUG_LOGGER in environment files
(/etc/sysconfig/sssd or /etc/default/sssd; depending on the
distribution)
to override default logging to files.
e.g.
DEBUG_LOGGER=--logger=stderr
DEBUG_LOGGER=--logger=journald
Resolves:
https://pagure.io/SSSD/sssd/issue/3433
--
t
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-sssd-devel/attachments/20200701/666cbc2c/attachment-0001.sig>
More information about the Pkg-sssd-devel
mailing list