]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dhcp: fix for systemd service file ChenQi/systemd-dhcpd
authorChen Qi <Qi.Chen@windriver.com>
Thu, 18 Sep 2014 05:47:43 +0000 (13:47 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Sun, 28 Sep 2014 08:57:39 +0000 (16:57 +0800)
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>
meta/recipes-connectivity/dhcp/files/dhcpd.service

index 8648f1a25380a09e369eb61467261e341d65fcc3..421517312ddeaa9ff495d3aeb2a6ddb7ed153038 100644 (file)
@@ -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]