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 844B51381F3 for ; Sun, 26 May 2013 14:22:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF6FBE0D41; Sun, 26 May 2013 14:22:48 +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 D092DE0D3B for ; Sun, 26 May 2013 14:22:47 +0000 (UTC) Received: from Nyx.local (dynamic-adsl-84-220-77-8.clienti.tiscali.it [84.220.77.8]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lu_zero) by smtp.gentoo.org (Postfix) with ESMTPSA id 7608C33DF5F for ; Sun, 26 May 2013 14:22:46 +0000 (UTC) Message-ID: <51A21AB3.8030307@gentoo.org> Date: Sun, 26 May 2013 16:22:43 +0200 From: Luca Barbato User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:22.0) Gecko/20100101 Thunderbird/22.0 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Reusing systemd unit file format / forking systemd References: <20130526093755.42b62259@gentoo.org> <51A1E2B7.5020803@gentoo.org> <20130526131557.15a599b8@gentoo.org> <51A1F926.7010805@gentoo.org> <20130526163546.22e99903@sf> In-Reply-To: <20130526163546.22e99903@sf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 4be8bb67-b9e4-4ea9-9a97-abe5f8d06639 X-Archives-Hash: 2174b8692aeeca44a69bae65a2d466d3 On 5/26/13 3:35 PM, Sergei Trofimovich wrote: > On Sun, 26 May 2013 13:59:34 +0200 > Luca Barbato wrote: > You need to name a unit with @ suffix, like openvpn@.service: > > $ cat /etc/systemd/system/openvpn@.service > [Service] > Type=simple > ExecStart=/usr/sbin/openvpn --user openvpn --group openvpn --cd /etc/openvpn --chroot /var/run/openvpn --config %I.conf > > feel free to sprinkle %i (and others) for templating. Feel free to check which fields accept %expansions and which do not, last time I heard some fields do not. If it had been fixed I'm glad. lu