Johannes Meixner wrote:
Hello,
On Nov 12 08:40 Andreas Jaeger wrote (excerpt):
The goal of presets is as an admin to define a policy on which services should be enabled and which not.
What exactly do you mean with "presets" here?
If it does not make sense to install the package but keep it disabled (e. g. uuidd), I propose to create preset file /usr/lib/systemd/system-preset/50-uuidd.preset containing preset for the particular package instead of requesting of adding a line to the the central /usr/lib/systemd/system-preset/90-default-openSUSE.preset
As far as I understand it via the systemd-presets-branding-* RPMs it is the distributor who defines which services should by default be enabled and which not.
I agree for packages, which make sense to install but still disable the service and packages, which need service configuration before turning on the service. But there are packages that are completely optional, but if they are installed and service is left disabled, the packages are simply broken (e. g. uuidd, pcsc-lite). In such case, distributor has much easier option to disable them: Don't install them.
As far as I understand it is is impossible to make a RPM package with packaged systemd presets where it is the admin who defines it. When making a RPM package the one who makes the package defines it.
Admin should use "systemctl enable/disable" to enable/disable service. "systemctl preset" sets the service to the default (rpm/distribution author) defined state. (But admin still can install own system-preset file with a high priority and then use customized behavior of "sytemctl preset".)
Accordingly - as far as I understand it - Stanislav Brabec is talking here on the opensuse-packaging list about how openSUSE defines it.
Yes, my concern is just about packaging of preset files, not about presets itself: I am sending it to opensuse-packaging to find an answer do question: Does it make sense to add preset file for every particular optional package to systemd-presets-branding-{anything}? Isn't it sometimes better to add preset file to particular package? -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +49 911 7405384547 190 00 Praha 9 fax: +420 284 084 001 Czech Republic http://www.suse.cz/ PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org