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 8AFA21381F3 for ; Fri, 30 Aug 2013 05:35:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 436C4E0F50; Fri, 30 Aug 2013 05:35:14 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD7F2E0CD4 for ; Fri, 30 Aug 2013 05:35:12 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id z5so831738lbh.28 for ; Thu, 29 Aug 2013 22:35:11 -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=POlSomI8e0iChb4a2Kr+xol+ZBq5WPEh23T1qyMIYks=; b=aP3y8vslvn2RBzKe9aASlzsncuD3YnHP6OahKfmfWXX4L0zaXgI8VIn5aOG/jOQSox Mba+FOvuJlL8VluPaNmipQfCZyjgS0ZtIGr5Rz69o7OrmRZxGRDa8pcG8jkZh0igxNpj pBXLYQ+KCiO6yizKitXVuZkuKVSsBVKj6Y+v9YDTIbtFtt7xU4tqcfQgoCxOFg7500zA PphVT/ufSBB5pgxQQAYvi6zkJS7VJQTCprvsvASW4KDIla5wK/BbZ+dRlY6TiJ8O5pp6 oCqpQsWUX1OeoRaD7SmSGrB2z/n3wSnjN88WPHTEh5e21+yU9gNgrjC4Zx5sxMAyaoOm kEcQ== 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 X-Received: by 10.152.6.97 with SMTP id z1mr6290316laz.26.1377840910981; Thu, 29 Aug 2013 22:35:10 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Thu, 29 Aug 2013 22:35:10 -0700 (PDT) In-Reply-To: <87wqn3wy1g.fsf@einstein.gmurray.org.uk> References: <22350.1377575576@ccs.covici.com> <4304.1377582086@ccs.covici.com> <521CCBF1.4010409@xunil.at> <521CD0E3.10906@xunil.at> <521CD539.6040500@xunil.at> <521CD666.8060208@xunil.at> <521CD7E7.10000@xunil.at> <521D9E04.3000404@xunil.at> <87wqn3wy1g.fsf@einstein.gmurray.org.uk> Date: Fri, 30 Aug 2013 00:35:10 -0500 Message-ID: Subject: Re: [gentoo-user] looking for a couple of systemd units 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: 9984b592-49d5-42a0-ae83-702084aa9778 X-Archives-Hash: cd849ba498705d3f2ec4caecc3c9b0fb On Fri, Aug 30, 2013 at 12:24 AM, Graham Murray wro= te: > "Stefan G. Weichinger" writes: > >> Just found this note from Pacho on planet.gentoo.org: >> >> http://my.opera.com/pacho/blog/2013/08/27/how-to-write-proper-systemd-un= it-files >> >> I will have to review some of my files then ;-) > > What I did not understand from reading that is why he (or gentoo policy) > does not like 'type=3Dforking'. Reading the systemd man files, I thought > that type=3Dforking would be the "natural" choice for most daemons. On the contrary; with Type=3Dsimple systemd has better control on the service, since systemd itself execv() the service binary, and it can know precisely its PID and when it finishes. With Type=3Dforking systemd has to guess what the PID is, and therefore it nees more work to know the status of the service. It does a pretty good job, but it's easier with Type=3Dsimple. Type=3Dforking is there for old daemons that don't have a --foreground or similar option. 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