Thursday, April 21, 2016


I have to admit, I've been kind of pissed for a while about RedHat going with systemd as a replacement for init.  I spent a lot of time becoming fluent with init, and all of that is now defunct on the platform I work with the most.

I've spent some time with systemd now, though, and I have changed my mind.  systemd has some really strong advantages over init:

1. The files are so much simpler!  systemd has the most obvious init functions, like stop, restart, status built-in, so you don't have to come up with shell scripts to do them; you only really have to tell systemd where your binary is and what it should be called.  100+ lines of BASH or SH code can be distilled down to about 7 lines of systemd.

2. It's much safer.  Once again, the files are not scripts, they are simply metadata.  It would be difficult to make systemd do something weird and unsafe.

3. init is still supported, mostly.  Not a bad feature!

So, check me off as a reasonably happy systemd user.

No comments: