From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id B1CDE71547 for ; Sun, 28 Sep 2014 08:59:12 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id s8S8xCbQ020780 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 28 Sep 2014 01:59:13 -0700 (PDT) Received: from pek-qchen1-d1.corp.ad.wrs.com (128.224.162.187) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.174.1; Sun, 28 Sep 2014 01:59:12 -0700 From: Chen Qi To: Date: Sun, 28 Sep 2014 16:59:59 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [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: Sun, 28 Sep 2014 08:59:18 -0000 Content-Type: text/plain 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] -- 1.9.1