Skip to contentSkip to conversation

SystemD support for dhcp server

PATCH In review Otavio Salvador 3 participants 4 messages Nov 7, 2011

lore
Share & tools
lore
#0 lore raw

cover SystemD support for dhcp server

The following changes since commit 81a402b1f62a2d0cdbf6713c11ae5c6d6c22346f:

ca-certificates: update to 20111025 and clean up packaging (2011-11-07 11:52:31 +0100)

are available in the git repository at:
git://github.com/OSSystems/meta-oe master
https://github.com/OSSystems/meta-oe/tree/master

Otavio Salvador (1):
dhcp: add system support to dhcp-server

 .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend  |   19 +++++++++++++++++++
 .../recipes-connectivity/dhcp/files/dhcpd.service  |   12 ++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend
 create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcpd.service
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 dhcp: add system support to dhcp-server

---
 .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend  |   19 +++++++++++++++++++
 .../recipes-connectivity/dhcp/files/dhcpd.service  |   12 ++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend
 create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcpd.service
meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend new file +19 -0
new file mode 100644
index 0000000..d47f1ce
@@ -0,0 +1,19 @@
+# look for files in the layer first
+FILESEXTRAPATHS := "${THISDIR}/files"
+
+inherit systemd
+
+SYSTEMD_PACKAGES = "dhcp-server-systemd"
+SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service"
+
+SRC_URI += "file://dhcpd.service"
+
+do_install_append() {
+    install -d ${D}${base_libdir}/systemd/system
+    install -m 644 ${WORKDIR}/dhcpd.service ${D}${base_libdir}/systemd/system
+}
+
+PACKAGES =+ "dhcp-server-systemd"
+
+FILES_dhcp-server-systemd += "${base_libdir}/systemd"
+RDEPENDS_dhcp-server-systemd += "dhcp-server"
meta-oe/recipes-connectivity/dhcp/files/dhcpd.service new file +12 -0
new file mode 100644
index 0000000..70beee9
@@ -0,0 +1,12 @@
+[Unit]
+Description=Dynamic Host Configuration Protocol (DHCP)
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/dhcpd.pid
+EnvironmentFile=-/etc/default/dhcp-server
+ExecStart=/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q $INTERFACES
+
+[Install]
+WantedBy=multi-user.target
Signature · 1 line
1.7.2.5
#2 lore raw

Re: [meta-oe][PATCH 1/1] dhcp: add system support to dhcp-server

Dear Otavio,

thank you for the patch. system*d* in the commit summary.

Am Montag, den 07.11.2011, 14:33 +0000 schrieb Otavio Salvador:

Quoted 7 lines
---
 .../recipes-connectivity/dhcp/dhcp_4.2.0.bbappend  |   19 +++++++++++++++++++
 .../recipes-connectivity/dhcp/files/dhcpd.service  |   12 ++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/dhcp/dhcp_4.2.0.bbappend
 create mode 100644 meta-oe/recipes-connectivity/dhcp/files/dhcpd.service

[…]

Quoted 8 lines
meta-oe/recipes-connectivity/dhcp/files/dhcpd.service new file +2 -0
new file mode 100644
index 0000000..70beee9
@@ -0,0 +1,12 @@
+[Unit]
+Description=Dynamic Host Configuration Protocol (DHCP)

meta-oe/recipes-connectivity/dhcp/files/dhcpd.service line 12

Quoted 10 lines
meta-oe/recipes-connectivity/dhcp/files/dhcpd.service new file +10 -0
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/dhcpd.pid
+EnvironmentFile=-/etc/default/dhcp-server
+ExecStart=/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q $INTERFACES
+
+[Install]
+WantedBy=multi-user.target

Did you write this yourself or did you get it from somewhere? Is upstream aware of this?

Thanks,

Paul

#3 lore raw
In reply to Otavio Salvador

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 07-11-11 15:33, Otavio Salvador schreef:

Quoted 5 lines

The following changes since commit
81a402b1f62a2d0cdbf6713c11ae5c6d6c22346f:

ca-certificates: update to 20111025 and clean up packaging (2011-11-07 11:52:31 +0100)

FWIW, systemd is spelled 'systemd', not 'systemD'

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFOt/4eMkyGM64RGpERAvnCAKCb+JLJp22J5DK16e15GkkoTRmbaACfbqp0 Uwm9UE5WfpCYZ789xzutMzk=
=mN0/
-----END PGP SIGNATURE-----