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 <[email protected]>
---
  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



--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to