Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Re:What's wrong with Windows Server? (Score 2) 613

It seems like that problem would be most simply solved by creating a command line tool called 'parallel' that lets you run several commands in parallel, and then returns when it is done. Something like 'parallel cmd1 cmd2 cmd3.'

A wrapper, which can be written as a shell script itself, would look for dependency information in the init scripts, probably in a comment or perhaps in a variable. When the wrapper runs, it checks the status of any required init scripts which share the same first line, using the functionality built into each init script. If they are all running then it fires off the daemon and exits. Else, it blocks if it is critical or not if it is optional, and either way it loops and waits for deps for a decent amount of time. If it is critical the boot process is interrupted, if it is optional then something else happens (script-dependent.) Dependency information could also be stored in a variable in a config file (e.g. in /etc/default) and when not present, the daemon can be treated as critical and blocking. All the other elements of the system remain unchanged, down to symlinks establishing daemon launch order. This requires changes only to init scripts, and even then only for daemons which are expected to launch in parallel. Is there some obvious reason why this wouldn't work?

Comment Re:Troll much? (Score 2) 613

-Bake in more advanced log processing to mitigate the need for log analysis tools.

What was wrong with log analysis tools? One can bang them out with perl in a minute or two.

Starting up /bin/sh hundreds of times during boot is wasteful and slows boot.

No, it really isn't. Process creation is cheap on Unix, and the shell will not only be cached during boot, but one or more copies of it will be present in memory at all times. Running the shell hundreds of times today is a triviality compared to running the shell dozens of times on Unix machines from the 1980s, on which that was in fact not a big deal, because process creation is cheap on Unix. This is just not a real consideration for any modern system, especially given the plethora of lightweight shells available for low-memory or otherwise limited systems.

Sequential startup of services is silly when many can be started in parallel.

This is really the argument that something new was needed, but frankly, it would have been simple enough to handle this without a whole new init system. A shell script wrapper would probably have done this job. Some distributions are already recording dependencies in init scripts; sequence information would be simple enough to add. If this is the best argument for systemd, and so far as I can tell it is that, then it's a really crap argument.

Comment Re:The Future! (Score 1) 613

Great! That is all we need. More fragmentation in the community! As if choosing a distro wasn't confusing enough as it is for newcomers!

It should be relatively simple to create tools to permit systemd to automagically support normal Unixlike config files.

THIS is the reason why Linux will never be a mainstream desktop.

The truth is that nobody but Ubuntu has ever really tried for the mainstream desktop, and they have serious flaws involving ignoring their users; Microsoft and Apple already fill that niche.

Comment Does it eliminate 5-more? (Score 1) 152

I might actually take some effort to spoof my user-agent if it eliminates 5-more. You know, because "modern" Google assumes that my 1680-pixel wide display can't show me all the top-level options. So it makes up for that by showing the 5 most recently used options, and then "more". Where the fuck did Maps go? Oh. It's under "more" now because I haven't used maps for a while. But at least I can pretend to be on a phone even though I've got 1680 horizontal pixels. I always wanted the imaginary creatures in my living room to think that I was on a cool new tiny phone with a tiny little screen, instead of a boring old laptop driving an external display.

Comment Re:if systemd forces it's way into gentoo (Score 1) 613

SystemD works just fine on Gentoo whether you use Gnome 3 or not. It is just a required dependency if you run Gnome 3 since that is the direction Gnome is moving in.

As long as people take care of OpenRC I'm sure that will always be an option. I wouldn't be surprised if at some point the install tarballs stop bundling sysvinit/openrc - much as they do not bundle cron, syslog, or even a kernel, leaving the choice of what sysvinit to install up to the user.

Comment Re:Troll much? (Score 1) 613

What I don't understand is why systemd advocates continue to not understand the perspective of those against it.

This suffers a bit from the "everybody in the world would agree with me if they only understood everything as well as I do" school of thought...

It is entirely possible that they understand the counter-arguments, but simply do not agree with them.

Comment Re:Troll much? (Score 1, Informative) 613

Of course it means that you can't try out a systemd controlled service start in a chroot, since it can't take pid 1 and how could we have *possibly* ever lived starting services as anything but pid 1.

Systemd supports both:
1. Running as PID 1 in a container using a separate process namespace (which is at least as good as running in a chroot).
2. Running as non-root - you can use it to manage your own services under your own uid.

However you'd have to care something about boot times, which is rarely even in the mobile category (android phones take forever to boot, but people don't seem to mind since they almost never reboot them), and not mind that more opaque binary code is handling stuff that a common sysadmin cannot trace.

What are you going to be tracing in the init system anyway?

And if you want to stop a container, snapshot it, and restart it, you would definitely prefer that this operation takes place in about 100ms and not in 30 seconds. PID 1 doesn't just run after disks spin up and the POST completes.

You missed a bunch of other features, like native support for namespaces/containers, or not leaving orphans lying around when a service stops, which would certainly be interest to somebody running a server.

Comment Re:What's wrong with Windows Server? (Score 1) 613

What us geeks dislike about it is much the same reason we dislike systemd: its an abstract layer between you and the configuration of your services/daemons. We like init.d in that we can script those daemons and even add on to those init scripts if we choose. Where as windows services puts this wall between you and that sweetness. And systemd is pushing us in that direction and OP's last comment in the summary is ringing more and more true.

Uh, tell me how to adjust an init.d script such that:
1. You add support for running the daemon with an ionice level which was missing from the original script.
AND
2. The next distro upgrade won't blow your changes away, and you won't have to manually re-combine your changes with their new init script which adds some new feature yours lacks?

With systemd you just stick a drop-in in /etc and it will only override that one setting in the default unit - and there is no file collision. That's the beauty of declarative programming.

Comment Re:What's wrong with Windows Server? (Score 1) 613

Looks like Gentoo will also support systemd.

Gentoo already supports systemd - that webpage is a year old and wasn't a great comparison at the time it was created (and systemd was already available on Gentoo back then). SystemD on Gentoo is old news already - about the only thing left is to strip sysvinit out of the default install and have use user pick whatever implementation they prefer (much as they already pick kernels, cron, syslog, etc implementations). The whole point of Gentoo is to try to leave the choice up to the user and at this point you'd be hard-pressed to find software on Gentoo that doesn't work about as well on both OpenRC and SystemD.

Slashdot Top Deals

Thus spake the master programmer: "After three days without programming, life becomes meaningless." -- Geoffrey James, "The Tao of Programming"

Working...