summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-18 13:47:43 +0800
committerChen Qi <Qi.Chen@windriver.com>2014-09-28 16:57:39 +0800
commite8d9350d5e90ff8b13ab18cd0ec0c868e7cc7f9e (patch)
tree6ba54c07e1bb9ea770a680422f3cc0b03d7b5ec4
parente6c6d3fcfd2faf867e8145d25c1ba197fb9ee6b5 (diff)
downloadopenembedded-core-contrib-ChenQi/systemd-dhcpd.tar.gz
openembedded-core-contrib-ChenQi/systemd-dhcpd.tar.bz2
openembedded-core-contrib-ChenQi/systemd-dhcpd.zip
dhcp: fix for systemd service fileChenQi/systemd-dhcpd
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 <Qi.Chen@windriver.com>
-rw-r--r--meta/recipes-connectivity/dhcp/files/dhcpd.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service
index 8648f1a253..421517312d 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]