[OE-core] [PATCH V2 1/1] dhcp: fix for systemd service file

Chen Qi Qi.Chen at windriver.com
Thu Dec 18 03:09:18 UTC 2014


1. Add '-f --no-pid' option to make dhcpd start correctly
2. Do not force existence of the environment file.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
 meta/recipes-connectivity/dhcp/files/dhcpd.service | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service
index 8648f1a..484f46a 100644
--- a/meta/recipes-connectivity/dhcp/files/dhcpd.service
+++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service
@@ -4,8 +4,8 @@ After=network.target
 After=time-sync.target
 
 [Service]
-EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
-ExecStart=- at SBINDIR@/dhcpd -q $INTERFACES
+EnvironmentFile=- at SYSCONFDIR@/default/dhcp-server
+ExecStart=- at SBINDIR@/dhcpd -f --no-pid -q $INTERFACES
 
 [Install]
 WantedBy=multi-user.target
-- 
1.9.1




More information about the Openembedded-core mailing list