diff options
author | Li xin <lixin.fnst@cn.fujitsu.com> | 2015-06-18 10:14:00 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-07 23:56:23 +0100 |
commit | b8eeac1b85c253c49f4324ac36db8ff98b286688 (patch) | |
tree | b624d3bb6de387017b83e7eaf9cd3b8a17e1481e /meta/recipes-connectivity/dhcp/files | |
parent | 3630f7963a472fa11a1d52bd9782fde9a9880971 (diff) | |
download | openembedded-core-b8eeac1b85c253c49f4324ac36db8ff98b286688.tar.gz openembedded-core-b8eeac1b85c253c49f4324ac36db8ff98b286688.tar.bz2 openembedded-core-b8eeac1b85c253c49f4324ac36db8ff98b286688.zip |
dhcp: modify dhcpd.service to make it start successfully and add systemd service files dhcpd6.service
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/files')
-rw-r--r-- | meta/recipes-connectivity/dhcp/files/dhcpd.service | 8 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/files/dhcpd6.service | 15 |
2 files changed, 21 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service index 8648f1a253..ae4f93eca5 100644 --- a/meta/recipes-connectivity/dhcp/files/dhcpd.service +++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service @@ -1,11 +1,15 @@ [Unit] -Description=DHCP Server Daemon +Description=DHCPv4 Server Daemon +Documentation=man:dhcpd(8) man:dhcpd.conf(5) After=network.target After=time-sync.target [Service] +PIDFile=@localstatedir@/run/dhcpd.pid EnvironmentFile=@SYSCONFDIR@/default/dhcp-server -ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES +EnvironmentFile=-@SYSCONFDIR@/sysconfig/dhcp-server +ExecStartPre=@base_bindir@/touch @localstatedir@/lib/dhcp/dhcpd.leases +ExecStart=@SBINDIR@/dhcpd -f -cf @SYSCONFDIR@/dhcp/dhcpd.conf -pf @localstatedir@/run/dhcpd.pid $DHCPDARGS -q $INTERFACES [Install] WantedBy=multi-user.target diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd6.service b/meta/recipes-connectivity/dhcp/files/dhcpd6.service new file mode 100644 index 0000000000..ca96abb838 --- /dev/null +++ b/meta/recipes-connectivity/dhcp/files/dhcpd6.service @@ -0,0 +1,15 @@ +[Unit] +Description=DHCPv6 Server Daemon +Documentation=man:dhcpd(8) man:dhcpd.conf(5) +After=network.target +After=time-sync.target + +[Service] +PIDFile=@localstatedir@/run/dhcpd6.pid +EnvironmentFile=@SYSCONFDIR@/default/dhcp-server +EnvironmentFile=-@SYSCONFDIR@/sysconfig/dhcpd6 +ExecStartPre=@base_bindir@/touch @localstatedir@/lib/dhcp/dhcpd6.leases +ExecStart=@SBINDIR@/dhcpd -f -6 -cf @SYSCONFDIR@/dhcp/dhcpd.conf -pf @localstatedir@/run/dhcpd6.pid $DHCPDARGS -q $INTERFACES + +[Install] +WantedBy=multi-user.target |