aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/dhcp/files/dhcpd.service
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-08-08 02:52:47 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-09-03 15:05:42 +0800
commit85d96d3058de64759667dd5aac72cfa1d84d9a84 (patch)
tree66025ca449db23cbfd655e73d401db0ce18ba430 /meta/recipes-connectivity/dhcp/files/dhcpd.service
parent987c90ac9e9ba42af9e24a3d89354b8d57cab1fd (diff)
downloadopenembedded-core-contrib-85d96d3058de64759667dd5aac72cfa1d84d9a84.tar.gz
openembedded-core-contrib-85d96d3058de64759667dd5aac72cfa1d84d9a84.tar.bz2
openembedded-core-contrib-85d96d3058de64759667dd5aac72cfa1d84d9a84.zip
dhcp: add systemd service files
Add dhcpd.service and dhcrelay.service to support systemd systems. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-connectivity/dhcp/files/dhcpd.service')
-rw-r--r--meta/recipes-connectivity/dhcp/files/dhcpd.service11
1 files changed, 11 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 @@
+[Unit]
+Description=DHCP Server Daemon
+After=network.target
+After=time-sync.target
+
+[Service]
+EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
+ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES
+
+[Install]
+WantedBy=multi-user.target