[Lunar-commits] <moonbase-core> dhcpcd: add the needed dhcpcd at .service file for systemd.

Florin Braescu florin at lunar-linux.org
Sun Jul 29 14:32:01 CEST 2012


commit bb6a2708a2b3ec4f8e1bee5960ade9b16da61b97
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sun, 29 Jul 2012 05:32:01 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/bb6a2708a2b3ec4f8e1bee5960ade9b16da61b97

dhcpcd: add the needed dhcpcd at .service file for systemd.
---
  net/dhcpcd/BUILD                                             +2/-2     
  net/dhcpcd/systemd.d/dhcpcd at .service                         +13/-0    
  2 files changed, 15 insertions (+), 2 deletions (-)

--- a/net/dhcpcd/BUILD
+++ b/net/dhcpcd/BUILD
@@ -1,8 +1,8 @@
 (
 
-  export PREFIX=/usr  &&
+  export PREFIX=/usr      &&
   export SYSCONFDIR=/etc  &&
-  export CSTD=gnu99  &&
+  export CSTD=gnu99       &&
 
   default_build
 
--- /dev/null
+++ b/net/dhcpcd/systemd.d/dhcpcd at .service
@@ -0,0 +1,13 @@
+[Unit]
+Description=dhcpcd on %I
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpcd-%I.pid
+ExecStart=/usr/sbin/dhcpcd -A -q -w %I
+ExecStop=/usr/sbin/dhcpcd -k %I
+
+[Install]
+Alias=multi-user.target.wants/dhcpcd at eth0.service




More information about the Lunar-commits mailing list