From: Stefan Schantl Date: Fri, 27 Apr 2012 18:41:22 +0000 (+0200) Subject: dhcp: Add systemd file for dhclient. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f64d66df7019ae1e021e8fbced7281b3d7f72088;p=ipfire-3.x.git dhcp: Add systemd file for dhclient. --- diff --git a/dhcp/dhcp.nm b/dhcp/dhcp.nm index 507891a9e..246ad17a1 100644 --- a/dhcp/dhcp.nm +++ b/dhcp/dhcp.nm @@ -5,7 +5,7 @@ name = dhcp version = 4.2.2 -release = 1 +release = 2 groups = Networking/Daemons url = http://isc.org/products/DHCP/ diff --git a/dhcp/systemd/dhclient@.service b/dhcp/systemd/dhclient@.service new file mode 100644 index 000000000..c3afc9392 --- /dev/null +++ b/dhcp/systemd/dhclient@.service @@ -0,0 +1,17 @@ +# 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=dhclient on %I +BindTo=dev-%I.device +After=dev-%I.device network.service +Requires=network.service + +[Service] +ExecStart=/usr/sbin/dhclient %I +UtmpIdentifier=%I +KillMode=process