News for hackers. Stuff that matters.
Re:FreeBSD Q2 2016 Status Report by tazjin on Thursday July 28, 2016 @06:32AM (#12179433)
I like FreeBSD but after getting used to systemd I can't go back to systems without useful init systems anymore.

Maybe at some point one of the BSDs will implement a new, cleaner init system.

Re:FreeBSD Q2 2016 Status Report by nisa on Thursday July 28, 2016 @08:50AM (#12179837)
If you care that much about init just use nosh, s6,runit or daemontools... you don't have unit-files but a similiar short shellscript and some small helper tools, stdout, stderr and respawn behavoir are also very similiar (well systemd was inspired by this). runit also provides good logging capabilities. Socket activation is also possible with these tools and has been for almost 15 years.

Could you eloborate where you had problems? The BSD init system is already quite clean, much cleaner than sysvinit.

I'm not sure what systemd features you need but most if not all can be replaced by small unix tools - that's kind of the point of the BSD philosophy.

Re:FreeBSD Q2 2016 Status Report by laumars on Thursday July 28, 2016 @06:55AM (#12179501)
I'm curious, what is it you find messy about FreeBSD's init system? Personally I prefer it to systemd.

(I know these topics can get quite heated, but I'm genuinely not looking to start a flame war).

Re:FreeBSD Q2 2016 Status Report by cm3 on Thursday July 28, 2016 @07:03AM (#12179518)
Previously service administration was different from linux distro to linux distro. This is of course no problem for FreeBSD, since there wasn't such a difference to begin with. One feature that FreeBSD may be missing is the dynamic behavior of desktop and mobile machines, which doesn't seem to map well to the existing init scripts.

While systemd clearly helped consolidate and make administration more predictable across linux distros, there are deficiencies and regressions due to systemd which for the most part didn't exist in the pre-systemd era. It may be due to the scope of functionality systemd aims to cover, but some of the unconventional or missing command line options don't help either. However, it's used by enough mainstream distros that I expect the kinks to be fixed with time.

Re:FreeBSD Q2 2016 Status Report by laumars on Thursday July 28, 2016 @07:12AM (#12179541)
I'm familiar with systemd. I've used it lots. Admittedly I'm not a fan of systemd but that's personal preference.

I was more interested in why the OP didn't consider FreeBSD to have a "useful init system". Just wondered if it was a preference thing or if there were features s/he considered it to be missing or were perhaps unaware of.

Re:FreeBSD Q2 2016 Status Report by VLM on Thursday July 28, 2016 @08:01AM (#12179670)
Its just trolling, thats why the original comment is content free.
Re:FreeBSD Q2 2016 Status Report by digi_owl on Thursday July 28, 2016 @12:12PM (#12181144)
> One feature that FreeBSD may be missing is the dynamic behavior of desktop and mobile machines, which doesn't seem to map well to the existing init scripts.

I keep seeing this argument, and i keep wondering what it is actually trying to say.

Just about the only time i can think of that i want to spin up a daemon in response to hardware changes would be with a USB bluetooth dongle, as it would require certain daemons to get working.

But the cost of just leaving a deamon idle in ram seems much lower than having to engineer a whole new init that monitor /dev changes so that it can start or stop a process or two in response to them.

Then again, maybe i am not the laptop packing dev convention goer that seems to use their laptop more like an oversized phone than a laptop (never mind a desktop).

Edit: damn keyboard ignored the copy command somehow, so i had the wrong quote pasted...

Re:FreeBSD Q2 2016 Status Report by mioelnir on Thursday July 28, 2016 @06:47PM (#12183775)
> Just about the only time i can think of that i want to spin up a daemon in response to hardware changes would be with a USB bluetooth dongle, as it would require certain daemons to get working. But the cost of just leaving a deamon idle in ram seems much lower than having to engineer a whole new init that monitor /dev changes so that it can start or stop a process or two in response to them.

Funny enough, FreeBSD is handling runtime hardware changes neither in its init process or rc scripts. Instead the FreeBSD kernel has a single-reader device event channel, which is read by devd. The submitted events range from ACPI laptop lid close/open, to added usb things or ZFS errors. They are matched against configurable rulesets and their respective actions executed. Loading kernel modules, starting daemons etc. Devd also multiplexes the received events to arbitrary numbers of additional consumers via a number of available sockets in /var/run.

Re:FreeBSD Q2 2016 Status Report by cm3 on Thursday July 28, 2016 @12:26PM (#12181247)
I don't know, it's just an argument I've heard from systemd and launchd proponents. I've had hardware events via udev for a long time before systemd.
Re:FreeBSD Q2 2016 Status Report by tedunangst on Thursday July 28, 2016 @01:06PM (#12181503)
Rule number one: if you don't understand a claim, don't repeat it. Nobody benefits.
Re:FreeBSD Q2 2016 Status Report by cm3 on Thursday July 28, 2016 @03:12PM (#12182438)
You're right. I've trusted the content of Jordan Hubbard's presentation, seeing how he was inside OS X for a long time and is a FreeBSD expert too, and didn't question the validity.
Re:FreeBSD Q2 2016 Status Report by cm3 on Thursday July 28, 2016 @06:55AM (#12179500)
The strongest contender (which also happens to be cross-platform), from what I can tell, is nosh (https://news.ycombinator.com/item?id=10493926).
Re:FreeBSD Q2 2016 Status Report by e12e on Thursday July 28, 2016 @02:33PM (#12182137)
Looks like the nosh homepage is gone? Do you happen to know if the project has moved, or is available anywhere? I find various outdated links, but nothing up to date on nosh anywhere.
Re:FreeBSD Q2 2016 Status Report by JdeBP on Monday August 01, 2016 @08:59AM (#12201983)
It has moved. There's an article on the new WWW site about what happened.

There's a new version of nosh ready on the new WWW site. I'll be announcing in the usual places soon. I believe that it has a few things of interest to people, including (given what was said above) a slight further extension on the cross-platform front.

Re:FreeBSD Q2 2016 Status Report by cm3 on Friday August 05, 2016 @11:29AM (#12233044)
Announcement: https://lists.debian.org/debian-user/2016/08/msg00116.html

URL: https://jdebp.eu/Softwares/nosh/

> It has moved. There's an article on the new WWW site about what happened.

Can't find the article though.

Re:FreeBSD Q2 2016 Status Report by JdeBP on Friday August 05, 2016 @12:32PM (#12233635)
I have another one for you: https://jdebp.eu./FGA/web-fully-qualified-domain-name.html (-:

That's not the nosh 1.28 announcement, by the way. I have yet to do that.

Re:FreeBSD Q2 2016 Status Report by cm3 on Friday August 05, 2016 @01:07PM (#12234000)
What's (-:, by the way?

> That's not the nosh 1.28 announcement, by the way. I have yet to do that.

Okay, will that include the "article on the new WWW site about what happened"?

Re:FreeBSD Q2 2016 Status Report by JdeBP on Saturday August 06, 2016 @09:04AM (#12237988)
No. It's not germane to the softwares themselves. It's only germane rather to the people who've been variously asking me what happened to the old WWW site, whom I have been thanking for their patience until the new WWW site was up.

As I said, it's on the new WWW site, and you can read it there.

For want of a better place, I put it on the new WWW site in the "author" section. For now. The change of WWW site motivated me to do some restructuring of things that I laid out decades ago and tidy up stuff that was only there for some old URLs that were floating around (that don't point to the new WWW site of course, making the fixes for them irrelevant). I still haven't settled on the layout of the "author" section, and it might change. Any URL valid now might not be valid in months and years to come when this comment is still visible to the world. And I have just been tidying up the long-term consequences of stale URLs on discussion fora from years ago.

So just follow an author hyperlink, from pretty much any page, to the (current) author section and proceed from there.

Re:FreeBSD Q2 2016 Status Report by cm3 on Thursday July 28, 2016 @03:18PM (#12182470)
Can't find it either, might be worthwhile to contact Jonathan about it.
Re:FreeBSD Q2 2016 Status Report by mveety on Friday July 29, 2016 @01:11AM (#12185117)
How is BSD init not useful? All it's supposed to do it start and maybe stop services, and it does that quite well.

BSD init is pretty small and clean. I would argue systemd is much less so because of the large scope of the project. The more lines of code and features you have means there's going to be more bugs and more ugliness, and that's true for all large programs. New doesn't mean better either. If it isn't broken and still works well, then you don't need a replacement, which really is why systemd exists to begin with. Sysvinit was a god awful and byzantine program IMO.