From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 136B413800E for ; Thu, 9 Aug 2012 17:14:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7E40E076F; Thu, 9 Aug 2012 17:14:08 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id D6A21E068C for ; Thu, 9 Aug 2012 17:13:09 +0000 (UTC) Received: by bkwj4 with SMTP id j4so335017bkw.40 for ; Thu, 09 Aug 2012 10:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=L2fDIYfRCV3DnaZNhOI7kcWU033Ex5z8mGRwQt1p4PU=; b=YaC1/cICzOi+9zN+vJ67ubm5s5rx9yzTBFI+/8lpcStC7Xyr2HoAg60sKOUtqDM1e4 da5VE9biq1/HrnOHEhupwpft6d8iFYutIa6Q4pEDXmf2SV5dkDaVoIS3RdKdGWF+8JCV Ix0s8V6/+LaKYJ8jElakSG/xpLACsqD5icJMsjq8zxAHufL7mWGr+8BlWO4l1UBh3tYw ++DZVwvcEkH0KYmcqHe/+XtS31la/q3yYCaRidIoYvFdYYBStO9Ag+N+ZZuhOHYE54mR kneqhBjQvH6i5uXkBMeeo5mACwPatG1ze34Zft5oUBn164wS4gSEiNjbmCHnKOqtSeK/ QreA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.205.135.146 with SMTP id ig18mr9707043bkc.80.1344532388824; Thu, 09 Aug 2012 10:13:08 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.205.82.12 with HTTP; Thu, 9 Aug 2012 10:13:08 -0700 (PDT) In-Reply-To: References: <1344366029.24762.31.camel@TesterTop4> <502377E7.8010803@gentoo.org> <20120809140228.18316.qmail@stuge.se> Date: Thu, 9 Aug 2012 13:13:08 -0400 X-Google-Sender-Auth: pL_7jFr3gUdWoeWR-nvnJxZazyA Message-ID: Subject: Re: [gentoo-dev] pid 1 design From: Rich Freeman To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 9b27acc6-6cbc-4ccf-b3cc-553ab10eb645 X-Archives-Hash: 766a50e378ae90f26687113c6e559749 On Thu, Aug 9, 2012 at 12:00 PM, Wyatt Epp wrote: > On Thu, Aug 9, 2012 at 11:25 AM, Rich Freeman wrote: >> ...have an init as PID=1 that does >> nothing but launch systemd and keep it propped up until it gets a >> signal from systemd. However, that could have issues I'm just not >> thinking of. > > I'm not the maintainer, but this method does seem to work pretty well > for OpenRC and our old friend baselayout-1 (so, the last decade or so, > as I understand it). Yes, but OpenRC basically just launches processes and considers itself done with them. Systemd is a bit more like a shepherd, looking after things for their entire lifecycle. When you use openrc to stop a process it just runs a script which is responsible for cleaning up. If you stop a systemd service it can try nicely first, but if any descendant of the service is left running it will be cleaned up with a vengeance. If a process is supposed to be running and stops, systemd can restart it (which makes it more like init - which restarts anything in inittab if it dies). Systemd isn't a like-for-like replacement for traditional inits. It aims to be much more, so this is a bit of an apples-to-oranges comparison. Again, I'm not sure that it HAS to work the way it does, but I wouldn't dismiss their design simply because it is different. Also again, if curious I'd probably ask on their own list, assuming it hasn't already been answered there. Rich