[Lunar-commits] <moonbase-core> lunar-tools: Make systemd lnet wait for the device rename.

Peter de Ridder peter at lunar-linux.org
Fri May 31 14:15:02 CEST 2013


commit bb7436259464978e69a92d176c329d58670f56ec
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Fri, 31 May 2013 05:02:51 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/bb7436259464978e69a92d176c329d58670f56ec

lunar-tools: Make systemd lnet wait for the device rename.
---
  utils/lunar-tools/systemd.d/lnet-dhclient at .service | +2/-0     
  utils/lunar-tools/systemd.d/lnet-dhcpcd at .service   | +2/-0     
  utils/lunar-tools/systemd.d/lnet-static at .service   | +2/-0     
  3 files changed, 6 insertions(+)

--- a/utils/lunar-tools/systemd.d/lnet-dhclient at .service
+++ b/utils/lunar-tools/systemd.d/lnet-dhclient at .service
@@ -2,6 +2,8 @@
 Description=dhclient on %I
 Wants=network.target
 Before=network.target
+BindsTo=sys-subsystem-net-devices-%i.device
+After=sys-subsystem-net-devices-%i.device
 
 [Service]
 Type=forking
--- a/utils/lunar-tools/systemd.d/lnet-dhcpcd at .service
+++ b/utils/lunar-tools/systemd.d/lnet-dhcpcd at .service
@@ -2,6 +2,8 @@
 Description=dhpcd on %I
 Wants=network.target
 Before=network.target
+BindsTo=sys-subsystem-net-devices-%i.device
+After=sys-subsystem-net-devices-%i.device
 
 [Service]
 Type=forking
--- a/utils/lunar-tools/systemd.d/lnet-static at .service
+++ b/utils/lunar-tools/systemd.d/lnet-static at .service
@@ -2,6 +2,8 @@
 Description=Network connecitivity on %I
 Wants=network.target
 Before=network.target
+BindsTo=sys-subsystem-net-devices-%i.device
+After=sys-subsystem-net-devices-%i.device
 
 [Service]
 Type=oneshot




More information about the Lunar-commits mailing list