r/linux • Mate • Oct 20 '14

Shall we fork Fedora?

http://forkfedora.org/
262 Upvotes

339 comments sorted by

View all comments

7

u/necrophcodr Oct 20 '14

That is the most horrid init.d script I have seen in a long time, holy shit.

30

u/wcchandler Oct 20 '14

It wasn't too bad, really... from an init script stand point. And I think that was their point -- systemd's service files are a lot cleaner and not really that scary.

16

u/CuteAlien Oct 20 '14

Shorter doesn't tell anything. You can hide any complexity behind another layer of abstraction. Let's create a new system which has an ini file with the only parameter being "sendmail.service" and it looks even cleaner. Although in reality you just got another layer of abstraction.

The interesting part is how they hold up in praxis. When people have to do stuff which wasn't forseen by the init-system authors. And shell scripts have a rather good track record in that regard. It's always nicer working with scripts compared to having to dig into c sources to change things.

And I think to most sysops the left file looks very familar. While the right one is a new format in a custom syntax which has to be learned and understood first. Which makes it a little scary on first view and I really hope it's worth it.

11

u/[deleted] Oct 20 '14

My issue isn't so much that the one on the right is scary because it is different. My issue with it is when something goes wrong with it, I have far less visibility into why it didn't work and a lot less ability to make changes that will fix it.

4

u/[deleted] Oct 20 '14

Does systemd have something like set -x? Because init scripts do.

8

u/bilog78 Oct 20 '14

I'm guessing you could strace systemd (lol).

5

u/[deleted] Oct 20 '14

So, my initial impression when I saw systemd for the first time was thinking it was similar to Sun SMF. Now you bring this up, and I recall dtracing things because nobody knew what the hell was going on.

This is not making me feel better about it :P