From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S9Ll5-0004sO-Af for garchives@archives.gentoo.org; Sun, 18 Mar 2012 19:27:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 52BF8E08CE; Sun, 18 Mar 2012 19:27:00 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 4B979E06B4 for ; Sun, 18 Mar 2012 19:25:33 +0000 (UTC) Received: by dady25 with SMTP id y25so10286878dad.40 for ; Sun, 18 Mar 2012 12:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TLwR3ZH8zuEfbzvzbCxotwhFmSSysaqPl+tV5bz7GhU=; b=wKu6gVJ/P31to1JcSAV4qJ18rhDuSrmwRLemsKFKv3K8Ns7G7giAZDbpXguJEKJY5c Y348EKU9pDXdSxlKJFa1kICLkHqMOVpJJPXEHKOFyKIiyfFtnVkBFnx/0uvZcI64Od4y 4WhAhgbXwW2+sXftFaBBJfZl9LOGG+yLM8l/C+l1rpR5vXwn9mh61IzJ8jxFu5sj2GgX 2xIYOFG2F82HlRHKoH7GfItlKJRQZ2pN5qphACgkj8oLHJa3a6kLEZzA+tkWgnyK0QtB Hs0Jna+mSKh6FBtp5uKRF69MQ6eDjRXr4Opl6ii+YVclOVRNtBgf8Z2djwpoYBVacx16 vbFg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.68.236.72 with SMTP id us8mr5274522pbc.41.1332098732611; Sun, 18 Mar 2012 12:25:32 -0700 (PDT) Received: by 10.68.197.41 with HTTP; Sun, 18 Mar 2012 12:25:32 -0700 (PDT) In-Reply-To: References: <709768995.843751.1331957483491.JavaMail.open-xchange@email.1and1.com> <20120317115300.GB3615@acm.acm> <87obrugwvn.fsf@newton.gmurray.org.uk> Date: Sun, 18 Mar 2012 13:25:32 -0600 Message-ID: Subject: Re: [gentoo-user] Re: systemd? [ Was: The End Is Near ... ] From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6ddf32a5-40cd-4517-bb0d-630f4257f5e6 X-Archives-Hash: 743f3f04b58c3a2a8ad871029200b1db On Sun, Mar 18, 2012 at 5:23 AM, Pandu Poluan wrote: > > On Mar 18, 2012 3:52 PM, "Canek Pel=C3=A1ez Vald=C3=A9s" wrote: >> >> If the config file doesn't exists, the service will not start, and you >> can check the reason why with >> >> systemctl status sshd.service >> >> And of course you can set another mini sevice unit file to create the >> hostkeys. But I repeat: I think those tasks belong into the package >> manager, no the init script. >> > > Between installation by package manager and actual execution by the init > system, things might happen on the required file(s). Gentoo's initscript > guards against this possibility *plus* providing helpful error messages i= n > /var/rc.log > > Or, said configuration files might be corrupted; the OpenRC initscript --= if > written defensively -- will be able to detect that and (perhaps) fallback= to > something sane. systemd can't do that, short of putting all required > intelligence into a script which it executes on boot. That is a completely valid point, but I don't think that task belongs into the init system. The init system starts and stops services, and monitors them; checking for configuration files and creating hostkeys is part of the installation process. If something got corrupted between installation time and now, I would prefer my init system not to start a service; just please tell me that something is wrong. However, it's of course debatible. I agree with systemd's behavior; it's cleaner, more elegant, and it follows the Unix tradition: do one thing, and doing it right. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico