Comments (6)
It makes sense. I have been thinking about rewriting alternatives to make them more modern, and I even have requirements from other teams as well. The problem is that it was always pretty low on my todo list.
I will try to find someone on our team who would be willing to work on this.
from chkconfig.
@wgwoods @lnykryn how do I file a request with upstream? In particular nss and p11-kit-trust ?
Is upstream aware of your intended changes or are they going to view these requests as WTF? for the time being ?
from chkconfig.
@wgwoods The config file idea seems interesting, but why make it compact instead of something more like systemd units (INI-/ConfigParser- style)? That way it's easy to understand and configure.
(also, cc: @thkukuk who is interested in this for openSUSE MicroOS)
from chkconfig.
I like the idea, but there are some problems, especially with atomic updates as used by different distributions in different implementations, but maybe also with updating configuration files.
Please make sure:
- user made overrides/changes should not be stored in the distribution provided configuration file, but in another place. Else updating and merging changes done by admin and distribution can become a pain.
- Don't store distribution provided default configuration files in /etc, there only the changes by the admin should be stored. Makes updating and merging of configuration files, especially with atomic updates, much easier.
So distributions should store their configuration file in e.g. /usr/share/alternatives.conf.d, which could be read-only, the user made changes should be stored in /etc/alternatives.conf.d and the application merges them at runtime.
For more background and ideas, please look at: https://github.com/thkukuk/atomic-updates_and_etc/blob/master/README.md
If we get this seperated and solved nicely, I will make sure that openSUSE will switch to this alternatives solution. And if we find a more ini style format, SUSE is currently developing a C library to merge such config files for applications, we are currently discussing the requirements of dnf for it with the developers.
from chkconfig.
@wgwoods @lnykryn friendly ping... Anyone have any idea when this might be tackled?
There's now a library for handling the config file overrides and layering similar to systemd, called libeconf. This is packaged in Fedora already, so this could make it much easier for implementing this.
from chkconfig.
@Conan-Kudo Well, a lot of people have this on their "when I have some free time" list for years. So I don't expect that this will be done anytime soon.
from chkconfig.
Related Issues (20)
- Outdated translations HOT 2
- Weird behavior when `--add-slave` and `--keep-foreign` used together for active alternative HOT 2
- [packit] Propose downstream failed for release 1.23
- alternatives.8 manual inconsistency for "--list" HOT 2
- DIR handle is not closed after use HOT 3
- Do not hardcode systemd dir HOT 2
- mem leak in alternatives HOT 2
- please migrate to the new Fedora translation platform HOT 5
- Make alternatives state dir configurable (or move it from /var to /etc) HOT 3
- Remove everything related to zanata
- while add a invalid service in the directory of /etc/chkconfig.d, execute chkconfig will coredump HOT 3
- while executing chkconfig --override xxx,if xxx does not exist in the dir of /etc/init.d/ and /etc/xinet.d ,there is no notice? HOT 1
- Translation sync broken on Weblate HOT 1
- alternatives --display <NAME> doesn't print error message when called with non-existent alternative
- update-alternatives needs verbose invalid message HOT 6
- /usr/sbin/alternatives needs to support more inclusive terminology HOT 1
- An occasional high-risk problem HOT 2
- "Could not merge the repository" on Fedora Weblate HOT 1
- Add '*' legend to alternatives --config ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chkconfig.