From owner-freebsd-current@FreeBSD.ORG Mon Feb 24 08:56:19 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E870EFB for ; Mon, 24 Feb 2014 08:56:19 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7CE461911 for ; Mon, 24 Feb 2014 08:56:19 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s1O8u82F073645; Mon, 24 Feb 2014 00:56:12 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201402240856.s1O8u82F073645@gw.catspoiler.org> Date: Mon, 24 Feb 2014 00:56:08 -0800 (PST) From: Don Lewis Subject: Re: libinit idea To: Lucius.Rizzo@Lucius.XxX In-Reply-To: <20140223182232.GA25967@lucius.XxX> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: brunolauze@msn.com, swhetzel@gmail.com, andrnils@gmail.com, freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 08:56:19 -0000 On 23 Feb, Lucius Rizzo wrote: > * Andreas Nilsson [2014-02-23 09:33]: >> Imho, the replacement to init and rc-scripts I sometimes think about >> would be to import SMF from opensolaris/illumos. There one can at >> least get the commands run and config used without looking at the >> source code. > > I like SMF from Solaris 11 onwards and even SmartOS. However, I have > found to like systemd and use via systemctl on Arch far nicer than any > other rc scripts to date. > > Anyone care to share their thoughts on the pros and cons of something > like systemd the way Arch does? I've got a Fedora server here that has systemd and I've come to dislike it. It seems to be one of those "Do not open. No user serviceable parts inside." sorts of things. I was never able to get it to start NUT properly. More often than not, it fails to come up multi-user. The machine has a large number of disks (mostly JFS and XFS) attached to it, and even after what I think should be a clean shutdown, it seems to want to fsck a bunch of them. Unfortunately, there seems to be some sort of timeout on that, so a bunch get skipped and then don't get mounted. I have to manually fsck everything in single user mode. Then if I reboot, it *might* come up properly. I haven't been able to find any knobs to adjust the timeout. Sometimes, there is just a message that says something like "an error occurred" at the top of the screen, just before the prompt for the single-user password, with no clue as to what it is unhappy about. Emergency shutdown can also be a problem. If I'm around when the power fails, I manually try to shut down the machine before the UPS battery runs down. I don't have the screen on the UPS, so I hit the power button and cross my fingers that the machine will make it through the clean shutdown sequence in time. It seems to take forever (many minutes) and I have no idea what the heck it is spending all of its time on. The documentation seems to be very sparse. My plan is to migrate this function to a FreeBSD server.