From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2217 Path: news.gmane.org!not-for-mail From: Jonathan de Boyne Pollard Newsgroups: gmane.os.freebsd.devel.hackers,gmane.linux.debian.user,gmane.comp.sysutils.supervision.general Subject: Re: nosh version 1.17 Date: Sun, 28 Jun 2015 17:39:04 +0100 Message-ID: <55902328.8080602@NTLWorld.com> References: <54430B41.3010301@NTLWorld.com> <54B86FD5.3090203@NTLWorld.com> <554E53EF.4080600@NTLWorld.com> <554E93AF.3070709@NTLWorld.com> <556BA130.50708@NTLWorld.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435509573 19688 80.91.229.3 (28 Jun 2015 16:39:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 16:39:33 +0000 (UTC) To: debian-user@lists.debian.org, "supervision@list.skarnet.org" , FreeBSD Hackers Original-X-From: owner-freebsd-hackers@freebsd.org Sun Jun 28 18:39:26 2015 Return-path: Envelope-to: freebsd-hackers@m.gmane.org Original-Received: from mx2.freebsd.org ([8.8.178.116]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9Fc5-00020A-En for freebsd-hackers@m.gmane.org; Sun, 28 Jun 2015 18:39:25 +0200 Original-Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.freebsd.org (Postfix) with ESMTPS id 87E3F2DD5; Sun, 28 Jun 2015 16:39:24 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Original-Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6220219FF; Sun, 28 Jun 2015 16:39:24 +0000 (UTC) (envelope-from owner-freebsd-hackers@freebsd.org) Original-Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D882E98F693 for ; Sun, 28 Jun 2015 16:39:19 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Original-Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) by mx1.freebsd.org (Postfix) with ESMTP id 5CD3F19C0 for ; Sun, 28 Jun 2015 16:39:18 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Original-Received: from [192.168.1.100] ([86.20.122.200]) by know-smtprelay-2-imp with bizsmtp id lsfH1q00X4KXVwe01sfHql; Sun, 28 Jun 2015 17:39:17 +0100 X-Originating-IP: [86.20.122.200] X-Spam: 0 X-Authority: v=2.1 cv=RLtOZNW+ c=1 sm=1 tr=0 a=WByauD8lJrWvBFCNrxRoEQ==:117 a=WByauD8lJrWvBFCNrxRoEQ==:17 a=NLZqzBF-AAAA:8 a=-0vIq9fx67kA:10 a=N659UExz7-8A:10 a=flwjNAT5w8FmYhSXFZMA:9 a=pILNOxqGKmIA:10 a=XdyKOaxJwVsA:10 User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <556BA130.50708@NTLWorld.com> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: owner-freebsd-hackers@freebsd.org Original-Sender: owner-freebsd-hackers@freebsd.org Xref: news.gmane.org gmane.os.freebsd.devel.hackers:55925 gmane.linux.debian.user:498665 gmane.comp.sysutils.supervision.general:2217 Archived-At: nosh is now up to version 1.17 * http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/nosh.html As I said to gdiazhartusch a while back, and as listed on the roadmap page, there is now a tool for auto-creating the mount@*, fsck@*, ttylogin@*, dump@*, and swap@* service bundles from /etc/ttys and /etc/fstab, and propagating settings from /etc/rc.conf{,.local} to service bundle env/ directories. This is documented in the Nosh Guide, in the section on external formats. It involves the use of redo, as I just mentioned in the release annoucement for redo 1.2, because it's a suite of redo scripts that endeavour to re-import the settings only when the source files change. An important design choice, called out in the introduction to the Nosh Guide, is that this is not a system of continually-regenerated ephemera. The Nosh Guide introduction has been completely rewritten, by the way. The external formats import relies upon rcctl, which now has the full implementation of "set" and "get" that was promised in the roadmap. Note the caveat in the manual about not using "set" on a "status" variable. That's an OpenBSD idiosyncrasy that wouldn't be correct for FreeBSD even with the original tool. Use "enable" and "disable". They'll work. Part of importing /etc/fstab is generating appropriate dump@* and swap@* service bundles. You'll note that swapauto and swaplate are no longer services but targets. As services, they relied upon options to "swapon" and were one giant lump. As targets, they pull in all of the generated swap@* services which are individually enabled. Also note that whilst the pre-built mount@-, fsck@-, mount@-usr, fsck@-usr, mount@-var, and fsck@-var service bundles are still supplied, the auto-creation system (or something similar) is meant to supersede them with bundles that match your /etc/fstab after system installation. Those aren't the only service bundle changes. There's the steady chipping away at that list of 157 rc.d scripts, which has just lost off its list a few pf services and savecore amongst other things. You might be wondering why mountcritlocal and mountcritremote are still there. The new auto-creation system makes mount@* and fsck@* bundles, and links them into targets, after all. The answer is that those FreeBSD rc.d scripts (like several others) have had some feature creep, and mounting is not all that they in fact do. There's some temporary files cleanup in there, for example. Which leaves just the last major change, which is the /etc/ subdirectories. /etc/system-manager/targets and /etc/sv have been brought together as /etc/service-bundles/targets and /etc/service-bundles/services. And /etc/system-manager/presets is now the better named /etc/system-control/presets as this is a function of the latter tool not of the former. The post-upgrade scripts in the binary packages will move the directories and create appropriate symbolic links in the right places. If you are building from source and hand-installing ... well look at what the post-upgrade scripts do, since they are right there in the source package, and do that. (-: _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"