From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [IPFire-SCM] [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 43bdff8136ea385ae6e5423d2b4c5b3ea2afedde Date: Sun, 27 May 2012 15:26:23 +0200 Message-ID: <20120527132624.7E03B200BA@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8368449351404407721==" List-Id: --===============8368449351404407721== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 3.x development tree". The branch, master has been updated via 43bdff8136ea385ae6e5423d2b4c5b3ea2afedde (commit) via ccdd7d5a0b21f373e657dc4bbbb64cf5ffec3cfa (commit) from 4cf1d18fbb8a7cc118c084e5eb27f19107461830 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 43bdff8136ea385ae6e5423d2b4c5b3ea2afedde Author: Michael Tremer Date: Sun May 27 12:18:22 2012 +0000 dhcp: Update the systemd unit file for dhclient. =20 This update enables dhclient to be properly used with the current networking code. commit ccdd7d5a0b21f373e657dc4bbbb64cf5ffec3cfa Author: Michael Tremer Date: Sun May 27 12:16:16 2012 +0000 hostapd: Make systemd unit file independent from network.service. =20 Within the startup of network.service, hostapd needs to be started which will cause a deadlock. This patch removes the requirement of hostapd, that the network service has already to be up. ----------------------------------------------------------------------- Summary of changes: dhcp/dhcp.nm | 2 +- dhcp/systemd/dhclient4(a).service | 21 +++++++++++++++++++++ dhcp/systemd/dhclient(a).service | 17 ----------------- hostapd/hostapd.nm | 3 +-- hostapd/systemd/hostapd(a).service | 3 +-- 5 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 dhcp/systemd/dhclient4(a).service delete mode 100644 dhcp/systemd/dhclient(a).service Difference in files: diff --git a/dhcp/dhcp.nm b/dhcp/dhcp.nm index 246ad17..f9667b2 100644 --- a/dhcp/dhcp.nm +++ b/dhcp/dhcp.nm @@ -5,7 +5,7 @@ =20 name =3D dhcp version =3D 4.2.2 -release =3D 2 +release =3D 3 =20 groups =3D Networking/Daemons url =3D http://isc.org/products/DHCP/ diff --git a/dhcp/systemd/dhclient4(a).service b/dhcp/systemd/dhclient4(a).se= rvice new file mode 100644 index 0000000..d7023c8 --- /dev/null +++ b/dhcp/systemd/dhclient4(a).service @@ -0,0 +1,21 @@ +[Unit] +Description=3DDHCP client daemon for IPv4 on %I +BindTo=3Ddev-%I.device +After=3Ddev-%I.device + +[Service] +Restart=3Don-failure +ExecStartPre=3D/usr/lib/network/dhclient-helper start %I ipv4 +ExecStart=3D/usr/sbin/dhclient -d %I -4 \ + -cf /run/network/dhclient/%I/dhclient4.conf \ + -lf /var/lib/dhclient/dhclient-%I.leases \ + -pf /run/network/dhclient/%I/dhclient4.pid +ExecStop=3D/usr/lib/network/dhclient-helper stop %I ipv4 + +# This could be used if you want to release a lease. +#ExecStop=3D/usr/sbin/dhclient -d -r %I -4 \ +# -cf /run/network/dhclient/%I/dhclient4.conf \ +# -lf /var/lib/dhclient/dhclient-%I.leases \ +# -pf /run/network/dhclient/%I/dhclient4.pid + +UtmpIdentifier=3D%I diff --git a/dhcp/systemd/dhclient(a).service b/dhcp/systemd/dhclient(a).serv= ice deleted file mode 100644 index c3afc93..0000000 --- a/dhcp/systemd/dhclient(a).service +++ /dev/null @@ -1,17 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -[Unit] -Description=3Ddhclient on %I -BindTo=3Ddev-%I.device -After=3Ddev-%I.device network.service -Requires=3Dnetwork.service - -[Service] -ExecStart=3D/usr/sbin/dhclient %I -UtmpIdentifier=3D%I -KillMode=3Dprocess diff --git a/hostapd/hostapd.nm b/hostapd/hostapd.nm index 507c0ea..a5de902 100644 --- a/hostapd/hostapd.nm +++ b/hostapd/hostapd.nm @@ -5,7 +5,7 @@ =20 name =3D hostapd version =3D 0.7.3 -release =3D 1 +release =3D 2 =20 groups =3D Networking/Tools url =3D http://hostap.epitest.fi/hostapd/ @@ -46,7 +46,6 @@ end =20 packages package %{name} - end =20 package %{name}-debuginfo template DEBUGINFO diff --git a/hostapd/systemd/hostapd(a).service b/hostapd/systemd/hostapd(a).= service index 2cff6d9..748cb0e 100644 --- a/hostapd/systemd/hostapd(a).service +++ b/hostapd/systemd/hostapd(a).service @@ -8,8 +8,7 @@ [Unit] Description=3DWLAN AP on %I BindTo=3Ddev-%I.device -After=3Ddev-%I.device network.service -Requires=3Dnetwork.service +After=3Ddev-%I.device =20 [Service] ExecStart=3D/usr/bin/hostapd -dd -P /run/network/hostapd/%I/pid /run/network= /hostapd/%I/config hooks/post-receive -- IPFire 3.x development tree --===============8368449351404407721==--