diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-09-03 15:09:07 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-03 11:09:05 +0100 |
commit | 9b5bc946e52c76b0f15c3576d9c6168a3bfcb767 (patch) | |
tree | 4662305a164f2fc9405b17e365e28448c1805090 /meta/recipes-connectivity/dhcp/files | |
parent | 198ed4b5bb11ea045b69523abb9244bd8d5df465 (diff) | |
download | poky-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.service | 11 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/files/dhcrelay.service | 9 |
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] | ||
2 | Description=DHCP Server Daemon | ||
3 | After=network.target | ||
4 | After=time-sync.target | ||
5 | |||
6 | [Service] | ||
7 | EnvironmentFile=@SYSCONFDIR@/default/dhcp-server | ||
8 | ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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] | ||
2 | Description=DHCP Relay Agent Daemon | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=@SBINDIR@/dhcrelay -d --no-pid | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=multi-user.target | ||