From owner-freebsd-arch@FreeBSD.ORG Wed Jan 18 02:17:42 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F7A6106566B for ; Wed, 18 Jan 2012 02:17:42 +0000 (UTC) (envelope-from jos@catnook.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 059B28FC08 for ; Wed, 18 Jan 2012 02:17:41 +0000 (UTC) Received: by iagz16 with SMTP id z16so9271358iag.13 for ; Tue, 17 Jan 2012 18:17:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.168.4 with SMTP id zs4mr11742488igb.25.1326853060937; Tue, 17 Jan 2012 18:17:40 -0800 (PST) Received: by 10.42.140.196 with HTTP; Tue, 17 Jan 2012 18:17:40 -0800 (PST) In-Reply-To: <20120118015720.GA17409@sandvine.com> References: <4F1502CD.90409@FreeBSD.org> <4F152475.50503@FreeBSD.org> <33752E6C-E016-4C7E-92DD-97B531D185E7@bsdimp.com> <4F15BB21.50905@freebsd.org> <20120117201807.GJ4729@azathoth.lan> <20120118015720.GA17409@sandvine.com> Date: Tue, 17 Jan 2012 18:17:40 -0800 Message-ID: From: Jos Backus To: Ed Maste Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arch@freebsd.org Subject: Re: Importing djb's public domain daemontools? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2012 02:17:42 -0000 On Tue, Jan 17, 2012 at 5:57 PM, Ed Maste wrote: > On Tue, Jan 17, 2012 at 01:29:52PM -0800, Jos Backus wrote: > > > How much work would this be, you think? Doesn't launchd rely on some > kernel > > functionality that FreeBSD doesn't have? Maybe I misremember. > > Are you perhaps thinking of systemd, which does use a whole bunch of > Linux-specific features? > Probably :) I guess part of the launchd porting effort was removing stuff that FreeBSD doesn't support out of the box, such as zeroconf/Bonjour. > There was a GSoC project to port launchd in the past; I have no idea > how much it has changed since then. > > http://wiki.freebsd.org/launchd I found the wiki and the Perforce soc2005 branch on perforce.freebsd.org, as well as the official launchd Subversion repo at http://launchd.macosforge.org. There's also https://github.com/rtyler/launchd-for-freebsd which seems to based on the Subversion repo but at an older revision. Only the Perforce branch seems to have any FreeBSD build glue. I guess a plan would be to port the changes made to Subversion trunk since the Perforce snapshot was taken to the Perforce branch. It looks like launchd hasn't changed in several years. After looking at the launchd code for a little bit, it looks much more complicated than daemontools, which in turn worries me in terms of its expected robustness. One of the nice properties of daemontools is that the individual pieces are fairly small and have been proven in the field to work well. Specifically, I'm worried that it will be harder to create a quality port of launchd compared to daemontools, and as Warner has hinted at, the port needs to work well for it to be accepted. It seems to me that a working port of daemontools is easier to achieve because the code is (much) simpler. Hence the chances of a solution to be accepted seem higher when using daemontools as a base. But maybe I'm overestimating the amount of work needed to get launchd into good enough shape to be committed. Jos > > -Ed > -- Jos Backus jos at catnook.com