summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/files
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-03 15:09:07 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-03 11:09:05 +0100
commit9b5bc946e52c76b0f15c3576d9c6168a3bfcb767 (patch)
tree4662305a164f2fc9405b17e365e28448c1805090 /meta/recipes-connectivity/dhcp/files
parent198ed4b5bb11ea045b69523abb9244bd8d5df465 (diff)
downloadpoky-9b5bc946e52c76b0f15c3576d9c6168a3bfcb767.tar.gz
dhcp: add systemd service files
Add dhcpd.service and dhcrelay.service to support systemd systems. (From OE-Core rev: 5f40081b0b9867bc167057712b04b3c1afb8a20d) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/files')
-rw-r--r--meta/recipes-connectivity/dhcp/files/dhcpd.service11
-rw-r--r--meta/recipes-connectivity/dhcp/files/dhcrelay.service9
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service
new file mode 100644
index 0000000000..8648f1a253
--- /dev/null
+++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=DHCP Server Daemon
3After=network.target
4After=time-sync.target
5
6[Service]
7EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
8ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta/recipes-connectivity/dhcp/files/dhcrelay.service b/meta/recipes-connectivity/dhcp/files/dhcrelay.service
new file mode 100644
index 0000000000..a2d818917d
--- /dev/null
+++ b/meta/recipes-connectivity/dhcp/files/dhcrelay.service
@@ -0,0 +1,9 @@
1[Unit]
2Description=DHCP Relay Agent Daemon
3After=network.target
4
5[Service]
6ExecStart=@SBINDIR@/dhcrelay -d --no-pid
7
8[Install]
9WantedBy=multi-user.target