[Lunar-commits] <moonbase-core> lunar-tools: Bumped to 2012.3 includes basic systemd support for lnet

Stefan Wold ratler at lunar-linux.org
Tue Jul 31 11:47:49 CEST 2012


commit 595491343e48c42a31db15b6a20561066676642d
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Tue, 31 Jul 2012 02:47:49 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/595491343e48c42a31db15b6a20561066676642d

lunar-tools: Bumped to 2012.3 includes basic systemd support for lnet
---
  utils/lunar-tools/DEPENDS                                    +1/-0     
  utils/lunar-tools/DETAILS                                    +3/-3     
  utils/lunar-tools/systemd.d/lnet-dhclient at .service           +14/-0    
  utils/lunar-tools/systemd.d/lnet-dhcpcd at .service             +15/-0    
  utils/lunar-tools/systemd.d/lnet-static at .service             +16/-0    
  5 files changed, 49 insertions (+), 3 deletions (-)

--- /dev/null
+++ b/utils/lunar-tools/DEPENDS
@@ -0,0 +1 @@
+depends iproute2
--- a/utils/lunar-tools/DETAILS
+++ b/utils/lunar-tools/DETAILS
@@ -1,12 +1,12 @@
           MODULE=lunar-tools
-         VERSION=2012.2
+         VERSION=2012.3
           SOURCE=$MODULE-$VERSION.tar.bz2
       SOURCE_URL=http://lunar-linux.org/lunar/
-      SOURCE_VFY=sha1:3e03f5fd6e6bc0d6306b9e71479d7f9833ba8fd2
+      SOURCE_VFY=sha1:06c986888bf8d09bdaea7ec0824665e7909d6582
       MAINTAINER=sofar at lunar-linux.org
         WEB_SITE=http://lunar-linux.org/
          ENTERED=20041029
-         UPDATED=20120714
+         UPDATED=20120731
            SHORT="A collection of lunar tools"
 cat << EOF
 Lunar-tools is a package with non-vital tools that help you perform
--- /dev/null
+++ b/utils/lunar-tools/systemd.d/lnet-dhclient at .service
@@ -0,0 +1,14 @@
+[Unit]
+Description=dhclient on %I
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/config.d/network/%I
+ExecStart=/usr/sbin/dhclient -q $DHCP_OPTIONS %I
+ExecStop=/usr/sbin/dhclient -r %I
+ExecStop=/usr/sbin/ip link set dev %I down
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/utils/lunar-tools/systemd.d/lnet-dhcpcd at .service
@@ -0,0 +1,15 @@
+[Unit]
+Description=dhpcd on %I
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/config.d/network/%I
+PIDFile=/run/dhcpcd-%I.pid
+ExecStart=/usr/sbin/dhcpcd -A -q -w $DHCP_OPTIONS %I
+ExecStop=/usr/sbin/dhcpcd -k %I
+ExecStop=/usr/sbin/ip link set dev %I down
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/utils/lunar-tools/systemd.d/lnet-static at .service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Network connecitivity on %I
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/config.d/network/%I
+ExecStart=/usr/sbin/ip link set dev %I up
+ExecStart=/usr/sbin/ip addr add ${ADDRESS}/${NETMASK} broadcast ${BROADCAST} dev %I
+ExecStop=/usr/sbin/ip addr flush dev %I
+ExecStop=/usr/sbin/ip link set dev %I down
+
+[Install]
+WantedBy=multi-user.target




More information about the Lunar-commits mailing list