From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mail.openembedded.org (Postfix) with ESMTP id 86045617B8 for ; Thu, 18 Sep 2014 16:02:46 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 18 Sep 2014 09:01:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,548,1406617200"; d="scan'208";a="604885098" Received: from new-host-2.jf.intel.com (HELO new-host-2.home) ([10.7.201.163]) by orsmga002.jf.intel.com with ESMTP; 18 Sep 2014 09:00:55 -0700 Message-ID: <541B01B5.9090900@linux.intel.com> Date: Thu, 18 Sep 2014 09:00:53 -0700 From: Randy Witt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: openembedded-core@lists.openembedded.org References: In-Reply-To: Subject: Re: [PATCH 1/1] dhcp: set Type=forking for dhcpd.service 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: Thu, 18 Sep 2014 16:02:50 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 09/17/2014 10:50 PM, Chen Qi wrote: > Set Type=forking for dhcpd.service to make it start up correctly. > > Signed-off-by: Chen Qi > --- > meta/recipes-connectivity/dhcp/files/dhcpd.service | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service > index 8648f1a..80f6c41 100644 > --- a/meta/recipes-connectivity/dhcp/files/dhcpd.service > +++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service > @@ -4,6 +4,7 @@ After=network.target > After=time-sync.target > > [Service] > +Type=forking Is it possible to set "PIDFile=" as well? There can be some weird behaviour if systemd loses track of the child process. > EnvironmentFile=@SYSCONFDIR@/default/dhcp-server > ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES > >