From Mageia wiki
Jump to: navigation, search


Summary

Use systemd presets for controlling enabling services automatically.

Owner

  • Name: Neal Gompa
  • Email: ngompa13@gmail.com

Resources

This will require developers to adjust rpm-helper to be preset aware and introduce presets for services we want to have enabled by default on package install. Developers may need to adjust drakxservices to become preset aware, too.

Current status

  • Targeted release: Mageia 7
  • Last updated: 2017/09/19
  • Percentage of completion: 0%


Detailed Description

We currently enable services automatically on installation, which is not necessarily desirable for various reasons (controlling surface exposure, distribution derivatives with different choices, etc.). There's a simple mechanism in systemd for handling this, called presets, and we should leverage it for handling the defaults automatically in Mageia 7.

Why it would be good for Mageia to do it

Presets allow the distribution and system administrators to set defaults on what should and shouldn't be enabled on install. This is quite useful for many things, as it allows for the distribution to have a well-tested set of services that default to enable and start, while allowing the system administrator to freely install things without randomly enabling/starting stuff. In addition, system administrators can use presets to mass-configure systems to be provisioned with certain stuff on by default and everything else is disabled by default.

Derivative distributions can use this functionality to control what is active by default in media and installs, too. And if they want to differ from Mageia, it becomes really trivial.


Test case

To be determined...

Tasks

  • Add presets to mageia-release for vetted services to enable by default
  • Adjust drakxservices to be preset-aware

Software / Packages Dependencies

  • drakxtools
  • mageia-release

What could disrupt development of this new feature

If we can't get everything changed, this feature will not be able to be completed.

Planning

This should happen as soon as possible to get the widest array of testing.

Contingency

If this fails to be ready for Mageia 7, then we revert this and try again for Mageia 8.

Release Notes

The release notes should indicate that default service enablement is now managed through presets, which gives redistributors and administrators the flexibility to customize what is enabled and run by default for provisioning and configuration management.

Documentation

Packager comments