From owner-freebsd-hackers@freebsd.org Fri Mar 2 15:39:33 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDAE2F2DA35 for ; Fri, 2 Mar 2018 15:39:33 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 555908707A for ; Fri, 2 Mar 2018 15:39:33 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pf0-x22d.google.com with SMTP id y186so4151960pfb.2 for ; Fri, 02 Mar 2018 07:39:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I0cbI2MfASeW1FfYyLgkAFhXnETgudCpI201/iSt8VU=; b=eJ/1Dt4buuSoYU+4QXujQ1M1uDUFVguG6m09CodxaCIjMyjPsExk/FQex9IIV1+2PY 6q3sih5eTK2NiehfGzgAog4/i3yMxNk9RW5201Izl61+yCdN1uN+4NfjlK0iWpToPyAt JRAxfMCF1JNX5uGnTuEZTWlgKnQXXDSOllcOa/GVYBxe04CtMb4ADAV7Aqbq/QBHj0We rbXXyaFZZ2tXwp1iHATeI79DRr0cuCNA8RvktIqmwW1qrwxL1kJtJ9IR7X9vTlX34CNF 7evfD7+zPSIyLk8p3f9AUMCZNhnHJyD62jqeAl0oXuyVYcgHRFundf/L9/yD1g2PQEDg c1Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=I0cbI2MfASeW1FfYyLgkAFhXnETgudCpI201/iSt8VU=; b=f2ziqFavO1HhBzb8YOnLNvp2CVBFA8CDUATDtt57/7T1M8x1mJLlyiBrQelUmCaA0K 0ZRVFykA38G4JOE4AaYlYahAljJhfkuQpj7zxCXE9t7cjTHcWuZdUhOxOJ3DR/zOtKsQ QqcXKuva0uAVn+Rn3Wc0llSNdfH8mvAtkYpeKb9ZT1UnedhOv0WpNQYbSOU/eRLr5AIL cmgssMxOfiNkB+GSt1iKQP2ivDNn8GyuVjxaTpX73hVfrjr6ZF4b8fIQMs5L6QIuPR8l +PCCmWzNOQKmQnFDWuW+q3HFkNGgLVind94W2yqT0wVs+JUYKUZgCpRcpc0CGy8UhT9k qC7A== X-Gm-Message-State: APf1xPDP3GmR7g5ygUy5S3o28sr5Wyf7PZlrK9rp8tPc9ysqkYz9uktr S4IdkJlaWhNiTSGW4WF/BpctaZT8sJJYVkyOQUs= X-Google-Smtp-Source: AG47ELuZbzl0sUGPG+op2fHCbsir5u3GEBGTGPDWLZmtI6a6KFgLOKXg/5LlRhNC/V27wYqzCeXGi/DT+gAAWFURYfQ= X-Received: by 10.101.69.4 with SMTP id n4mr4937145pgq.184.1520005172406; Fri, 02 Mar 2018 07:39:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.179.134 with HTTP; Fri, 2 Mar 2018 07:39:01 -0800 (PST) In-Reply-To: References: From: Gleb Popov <6yearold@gmail.com> Date: Fri, 2 Mar 2018 18:39:01 +0300 Message-ID: Subject: Re: OpenRC 0.35 for FreeBSD To: Joe Maloney Cc: freebsd-hackers Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 15:39:34 -0000 On Fri, Mar 2, 2018 at 4:02 AM, Joe Maloney wrote: > Hello hackers, > I have been working on a single diff version of OpenRC for FreeBSD: > > https://github.com/pkgdemon/freebsd/commit/b6885cd533c848a1b4f3582f48e40c > 883669b35c > > Why OpenRC? The licensing is right, and it's a way of adding modern > features to service management without reinventing the wheel. That's > my sales pitch. This newest itteration is a result of a year, and a > half of feedback from the import into TrueOS. Eventually it will be > upstreamed into TrueOS to further reduce the diff again between > TrueOS, and FreeBSD. > > The single commit in this new fork allows coexistence with rc.d. It > also uses dhcient again although there isn't a service to start it > directly yet but it does get started with netif. I have just recently > replaced OpenRC's bootmisc service with a dummy service that launches > cleartmp, cleanvar. Once I replace the remaining 7 or so scripts with > FreeBSD converted scripts I will rework the dependancies to remove the > uncessary dummy scripts during a second audit. I have been working on > a conversion tool which eases some of the conversion of the remaining > 89, or so scripts. > > As is this implemtnation only touches top level Makefiles, mtree, adds > new files, and adds a modified init which changes pathnames.h to call > /etc/openrc. This is work in progress so I am not quite done, and I > have been making tickets in the fork to keep track. I was thinking > for example of making a kenv option which would allow a single init to > switch pathnames settings perhaps. At the same time I was trying to > avoid being intrusive by touching service, or init. So therefore > there is service, and rc-service. There is init, and openrc-init. > There is rc, and openrc. There is rc.shutdown, and openrc.shutdown. > You just change init_path for loader, and that is that. > > I have full details in the wiki at the fork, and tickets for the items > I plan to tackle next: > > https://github.com/pkgdemon/freebsd/wiki > https://github.com/pkgdemon/freebsd/issues > > I have had a lot of fun working on this learning how base is tied > together, how bsdinstall is started, learning the internals of rc.d > scripts, etc. I would appreciate any feedback. Thanks. > > Joe Maloney > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > I've been seeing nosh release announcements for a long time and was thinking that this is what is going to replace current rc. Am I wrong?