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-08 00:01:19 +0100 |
commit | 44f0c01f31204b0c2d44876b3b20d126b8f49ea2 (patch) | |
tree | 2b1c8a7e54ee847e837b7170290b94c68c779991 /meta/recipes-connectivity/dhcp/files/dhcpd6.service | |
parent | ae5c24b20ae045841522f322d7e9dd2cc93a8022 (diff) | |
download | poky-44f0c01f31204b0c2d44876b3b20d126b8f49ea2.tar.gz |
dhcp: modify dhcpd.service to make it start successfully and add systemd service files dhcpd6.service
(From OE-Core rev: b8eeac1b85c253c49f4324ac36db8ff98b286688)
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/files/dhcpd6.service')
-rw-r--r-- | meta/recipes-connectivity/dhcp/files/dhcpd6.service | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | [Unit] | ||
2 | Description=DHCPv6 Server Daemon | ||
3 | Documentation=man:dhcpd(8) man:dhcpd.conf(5) | ||
4 | After=network.target | ||
5 | After=time-sync.target | ||
6 | |||
7 | [Service] | ||
8 | PIDFile=@localstatedir@/run/dhcpd6.pid | ||
9 | EnvironmentFile=@SYSCONFDIR@/default/dhcp-server | ||
10 | EnvironmentFile=-@SYSCONFDIR@/sysconfig/dhcpd6 | ||
11 | ExecStartPre=@base_bindir@/touch @localstatedir@/lib/dhcp/dhcpd6.leases | ||
12 | ExecStart=@SBINDIR@/dhcpd -f -6 -cf @SYSCONFDIR@/dhcp/dhcpd.conf -pf @localstatedir@/run/dhcpd6.pid $DHCPDARGS -q $INTERFACES | ||
13 | |||
14 | [Install] | ||
15 | WantedBy=multi-user.target | ||