But my impression is that [systemd] missed on the main criteria: keeping things simple.
To illustrate the point and somewhat move back to VMS let me confess something: I really like SYS$MANAGER:SYSTARTUP_VMS.COM to manage what
get started on VMS.
A simple text file that after a little cleanup typical will be only
20-50 lines. Easy to understand. Easy to edit.
On Sat, 20 Apr 2024 20:46:54 -0400, Arne Vajhøj wrote:
To illustrate the point and somewhat move back to VMS let me confess
something: I really like SYS$MANAGER:SYSTARTUP_VMS.COM to manage what
get started on VMS.
That’s the equivalent of the old /etc/rc.local, that some distros (and I think also BSDs) still support. OK for a small handful of services, but it doesn’t scale.
A simple text file that after a little cleanup typical will be only
20-50 lines. Easy to understand. Easy to edit.
Not so easy to selectively add/remove, enable/disable or start/stop individual services.
You should not run that many services on a single system.
On Sat, 20 Apr 2024 20:46:54 -0400, Arne Vajhøj wrote:
But my impression is that [systemd] missed on the main criteria: keeping
things simple.
But it does. Service definitions (and “unit” definitions in general) are written in config files following the classic text-based .INI format. If
you remember, Microsoft created this format back in the 1980s for Windows config files, then abandoned it in favour of that horror known as the Registry. Well, it lives on in the open-source world.
To illustrate the point and somewhat move back to VMS let me confess
something: I really like SYS$MANAGER:SYSTARTUP_VMS.COM to manage what
get started on VMS.
That’s the equivalent of the old /etc/rc.local, that some distros (and I think also BSDs) still support. OK for a small handful of services, but it doesn’t scale.
A simple text file that after a little cleanup typical will be only
20-50 lines. Easy to understand. Easy to edit.
Not so easy to selectively add/remove, enable/disable or start/stop individual services.
But .INI format is not a classic unix file format and not as easy to
parse as the real, classic unix file formats. I think of it as an abomination.
Not so easy to selectively add/remove, enable/disable or start/stop
individual services.
In fact it is easy to do all that if you know how to edit text filesm
either by hand or with tools like awk or sed.
On Sun, 21 Apr 2024 11:41:06 +0200, Andreas Eder wrote:
But .INI format is not a classic unix file format and not as easy to
parse as the real, classic unix file formats. I think of it as an
abomination.
It’s very easy to deal with, and very popular among open-source
developers. It’s so popular, there’s even a module in the standard Python library for parsing it. That’s why systemd adopted it.
But .INI format is not a classic unix file format and not as easy to
parse as the real, classic unix file formats. I think of it as an abomination.
In fact it is easy to do all that if you know how to edit text filesm
either by hand or with tools like awk or sed.
'Andreas
Those are entirely optional, but very handy for embedded/cloud image/iot stuff, where you don't want to pull in an entire distros worth of stuff.
On Sun, 21 Apr 2024 19:18:19 -0400, Arne Vajhøj wrote:
The 3 most widely formats for config files today are XML, JSON and YAML.
No, those are mainly used for data interchange, not so much for config
files (apart from XML).
But INI and Java properties may be the next 2 in usage.
“Java properties” isn’t a file format.
There is also TOML.
The 3 most widely formats for config files today are XML, JSON and YAML.
But INI and Java properties may be the next 2 in usage.
On Sun, 21 Apr 2024 19:18:19 -0400, Arne Vajhøj wrote:
The 3 most widely formats for config files today are XML, JSON and YAML.
No, those are mainly used for data interchange, not so much for config
files (apart from XML).
But INI and Java properties may be the next 2 in usage.
“Java properties” isn’t a file format.
On 2024-04-25, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Sun, 21 Apr 2024 19:18:19 -0400, Arne Vajhøj wrote:
The 3 most widely formats for config files today are XML, JSON and YAML.
No, those are mainly used for data interchange, not so much for config
files (apart from XML).
JSON and YAML are incredibly common for config files for newer software.
I've not really seen YAML used as a data interchange format, in my
experience it exists almost entirely to be a more human-friendly
alternative to JSON for configuration.
But INI and Java properties may be the next 2 in usage.
“Java properties” isn’t a file format.
https://en.wikipedia.org/wiki/.properties
https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)
The Java properties file format is well-defined and, not surprisingly,
used heavily by Java applications. I've been out of the Java world for a while, but in the 2000s, properties files were definitely in use for configuration files for many applications I ran and worked on.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 434 |
Nodes: | 16 (2 / 14) |
Uptime: | 114:48:28 |
Calls: | 9,109 |
Calls today: | 3 |
Files: | 13,419 |
Messages: | 6,030,393 |