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 1S9MIU-00032n-UZ for garchives@archives.gentoo.org; Sun, 18 Mar 2012 20:01:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 909E9E0A98; Sun, 18 Mar 2012 20:01:27 +0000 (UTC) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by pigeon.gentoo.org (Postfix) with SMTP id 8B4F1E07A1 for ; Sun, 18 Mar 2012 19:59:28 +0000 (UTC) Received: (qmail invoked by alias); 18 Mar 2012 19:59:27 -0000 Received: from wl-l3-93.rz.tu-ilmenau.de (EHLO localhost) [141.24.17.93] by mail.gmx.net (mp016) with SMTP; 18 Mar 2012 20:59:27 +0100 X-Authenticated: #4040096 X-Provags-ID: V01U2FsdGVkX1/uV3Q5SjLu85KvJmani+uJmkKvcscliKW0K84AfW BPJpzUxLOlAW/4 Date: Sun, 18 Mar 2012 20:59:27 +0100 From: Frank Steinmetzger To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: systemd? [ Was: The End Is Near ... ] Message-ID: <20120318195927.GB3705@eisen.lan> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <709768995.843751.1331957483491.JavaMail.open-xchange@email.1and1.com> <20120317115300.GB3615@acm.acm> <87obrugwvn.fsf@newton.gmurray.org.uk> 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 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt 1.5.21 (2010-09-15, Gentoo 1.5.21-r1) X-Y-GMX-Trusted: 0 X-Archives-Salt: 5d449c79-5df6-4108-9106-8a209ae86067 X-Archives-Hash: ef1891462f93e1b0ed98352d77e73fc3 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 18, 2012 at 01:25:32PM -0600, Canek Pel=C3=A1ez Vald=C3=A9s wro= te: > 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= in > > /var/rc.log > > > > Or, said configuration files might be corrupted; the OpenRC initscript = -- if > > written defensively -- will be able to detect that and (perhaps) fallba= ck to > > something sane. systemd can't do that, short of putting all required > > intelligence into a script which it executes on boot. >=20 > 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; That I can agree upon. > checking for configuration files and creating hostkeys > is part of the installation process. But not this. Installation is a one-time event whose lifetime is over once installation is done. > If something got corrupted between installation time and now, I would pre= fer > my init system not to start a service; just please tell me that something= is > wrong. Obviously, a service itself knows best about its own config files. So *it* should check for the files and if they are invalid/non-existent, it should abort starting and notify the init system. --=20 Gru=C3=9F | Greetings | Qapla' I forbid any use of my email addresses with Facebook services. Today=E2=80=99s stress is the good old times of the day after tomorrow. --T4sUOijqQbZv57TR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk9mPp8ACgkQGafpl66MV0zGNQCfRdiz16za3Ph9kuEW1tg9rWah Bj8AnjhaWlhT7INZAvc1M23NEXBq9A4S =ZSVc -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--