r/linux • • Oct 15 '15

Systemd for Upstart users

[deleted] — view deleted post

32 Upvotes

91 comments sorted by

View all comments

Show parent comment

6

u/Floppie7th Oct 15 '15

Personally, what I like about systemd is the ease of writing unit files. Any of my systems that require custom services get CentOS because systemd. Outside of that, it doesn't provide any advantages to me over e.g. runit, as you mentioned.

2

u/[deleted] Oct 16 '15

Personally, what I like about good ole standard init systems, is the ease in which I can have a daemon run reliable using a shell script to launch it.

Unit files remove control of how your daemon starts, and lets something else (Which may or may not have insight into how your daemon is written) decide how it thinks is the best way to launch your daemon.

2

u/Floppie7th Oct 16 '15

Huh? Unit files have every common option for daemon launches - and you can always wrap your daemon in a shell script if other things need to be done...and with unit files, you don't have to deal with each distro's arcane crap for init scripts. inittab is also fine for my purposes, but not as much fine-grained control as a unit file.

-2

u/teh_kankerer Oct 15 '15

systemd provides many advantages over runit, just like runit provides many advantages over systemd. But the ease of writing unit files isn't one of them. Runit service files are considerably easier than systemd units. Runit service files are basically nothing more than what you would put in the Exec= field of a systemd unit.

2

u/Floppie7th Oct 15 '15

It provides many advantages. It doesn't provide any advantages to me. That's why I explicitly included that language.

0

u/teh_kankerer Oct 15 '15

Oh, I read over the "to me" I guess.

But yes, it's all personal, that's why being able to mix and match and choose is important. If I had a need for cgroups systemd would be more attractive to me, currently runit fills all my needs except one for which I had to write my own functionality as it seems it doesn't actually exist.

1

u/Floppie7th Oct 15 '15

All my use cases for cgroups are just OS containers as a replacement for VMs, and I've got a Proxmox 3.4 cluster for that (which is still on an ancient kernel and sysvinit), so no need there.