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 38A751381F3 for ; Sun, 8 Sep 2013 15:41:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AD3EE0BCB; Sun, 8 Sep 2013 15:40:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BEF1BE0B77 for ; Sun, 8 Sep 2013 15:40:57 +0000 (UTC) Received: from [192.168.1.33] (74.Red-2-137-240.dynamicIP.rima-tde.net [2.137.240.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pacho) by smtp.gentoo.org (Postfix) with ESMTPSA id 54E8533E5B9 for ; Sun, 8 Sep 2013 15:40:56 +0000 (UTC) Message-ID: <1378654852.2175.14.camel@localhost> Subject: Re: [gentoo-dev] [PATCH systemd.eclass] Introduce systemd_install_serviced(). From: Pacho Ramos To: gentoo-dev@lists.gentoo.org Date: Sun, 08 Sep 2013 17:40:52 +0200 In-Reply-To: <1378653294.997.1.camel@kanae> References: <1378638746-8626-1-git-send-email-mgorny@gentoo.org> <1378653294.997.1.camel@kanae> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.5 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 Content-Transfer-Encoding: 8bit X-Archives-Salt: 82e5347c-7674-4935-8a1f-cd5465d55ea3 X-Archives-Hash: 88d67086a2025bbc74d33aaae75ef5f7 El dom, 08-09-2013 a las 17:14 +0200, Gilles Dartiguelongue escribió: > Le dimanche 08 septembre 2013 à 13:12 +0200, Michał Górny a écrit : > > This function can be used to install service configuration templates. > > Usage: > > > > systemd_install_serviced "${FILESDIR}"/foo.service.conf > > > > or: > > > > systemd_install_serviced "${FILESDIR}"/barbaz foo.service > > > > with the latter specifying related service name explicitly, former > > expecting it to match ${basename%.conf}. The files are installed as: > > > > /etc/systemd/system/foo.service.d/00gentoo.conf > > > > They should be commented out templates that users can use to customize > > the service easily. > > Looks like a good idea, do you have a few example packages where that > could be used ? For example distcc or ntp will use them to tell them what IPs should be allowed or what servers should be used to sync time. This are for some cases where we need to let people pass some options to the services without using conf.d file (that some times is not fully compatible with systemd).