logoalt Hacker News

sureglymopyesterday at 9:23 PM2 repliesview on HN

There are still some weird things/choices in its design I don't fully understand.

For example, why do unit definitions have to be actual files on disk? Then, all of these files are reloaded when the daemon reloads, not just changed ones. But, why couldn't there be an API letting me add units programmatically? (There kind of is but it's constrained/inflexible)

Or, why can't I declare multiple units in the same file? It's really designed around the filesystem instead of abstracting at a different level, which is a choice I don't think is smart. It's not like it follows the unix philosophy though.

As for the format used for unit definitions, I wish TOML had been around so they could have had something sensible...


Replies

lanycrosttoday at 8:04 AM

it's so, but overall linux is not following linux philosophy in many other places, and do it far before systemd. Many tools even running under unix not doing so like gcc, x.org, etc.

paulddrapertoday at 12:45 AM

You can add units programmatically. Google it!

show 1 reply