[oe-commits] [openembedded-core] 11/32: dhcp: dhcrelay.service cannot start successfully
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 4 14:23:19 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit f0ee1778c99a8b40c0fefa5f846aa34bf9701008
Author: Dai Caiyun <daicy.fnst at cn.fujitsu.com>
AuthorDate: Fri Apr 22 12:18:31 2016 +0300
dhcp: dhcrelay.service cannot start successfully
Modify dhcrelay.service to avoid it start failed.
Signed-off-by: Dai Caiyun <daicy.fnst at cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-connectivity/dhcp/dhcp.inc | 1 +
meta/recipes-connectivity/dhcp/files/dhcrelay.service | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index 421221f..aafdd0a 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -79,6 +79,7 @@ do_install_append () {
sed -i -e 's, at SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcpd*.service
sed -i -e 's, at base_bindir@,${base_bindir},g' ${D}${systemd_unitdir}/system/dhcpd*.service
sed -i -e 's, at localstatedir@,${localstatedir},g' ${D}${systemd_unitdir}/system/dhcpd*.service
+ sed -i -e 's, at SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcrelay.service
}
PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
diff --git a/meta/recipes-connectivity/dhcp/files/dhcrelay.service b/meta/recipes-connectivity/dhcp/files/dhcrelay.service
index a2d8189..15ff927 100644
--- a/meta/recipes-connectivity/dhcp/files/dhcrelay.service
+++ b/meta/recipes-connectivity/dhcp/files/dhcrelay.service
@@ -3,7 +3,8 @@ Description=DHCP Relay Agent Daemon
After=network.target
[Service]
-ExecStart=@SBINDIR@/dhcrelay -d --no-pid
+EnvironmentFile=@SYSCONFDIR@/default/dhcp-relay
+ExecStart=@SBINDIR@/dhcrelay -d --no-pid -q $SERVERS
[Install]
WantedBy=multi-user.target
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list