From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 7950C72606 for ; Wed, 17 Dec 2014 09:38:15 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id sBH9cF3T011524 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Wed, 17 Dec 2014 01:38:15 -0800 (PST) Received: from [128.224.162.226] (128.224.162.226) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 17 Dec 2014 01:38:15 -0800 Message-ID: <54914F06.3030405@windriver.com> Date: Wed, 17 Dec 2014 17:38:14 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: References: In-Reply-To: X-Originating-IP: [128.224.162.226] Subject: Re: [PATCH 1/1] dhcp: fix for systemd service file X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2014 09:38:18 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit ping On 09/28/2014 04:59 PM, Chen Qi wrote: > 1. Set Type=forking for dhcpd.service to make it start up correctly. > 2. Add PIDFile=/var/run/dhcpd.pid > 3. Do not force existence of the environment file. > > Signed-off-by: Chen Qi > --- > meta/recipes-connectivity/dhcp/files/dhcpd.service | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service > index 8648f1a..4215173 100644 > --- a/meta/recipes-connectivity/dhcp/files/dhcpd.service > +++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service > @@ -4,7 +4,9 @@ After=network.target > After=time-sync.target > > [Service] > -EnvironmentFile=@SYSCONFDIR@/default/dhcp-server > +Type=forking > +PIDFile=/var/run/dhcpd.pid > +EnvironmentFile=-@SYSCONFDIR@/default/dhcp-server > ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES > > [Install]