[packages/libteam] Be part of network.target, duh

mmazur mmazur at pld-linux.org
Mon Aug 8 19:47:07 CEST 2016


commit 9871639ceffb7c6c4c39174d5f2288e34fe319f6
Author: Mariusz Mazur <mmazur at axeos.com>
Date:   Mon Aug 8 19:46:36 2016 +0200

    Be part of network.target, duh

 teamd-lvl1-service-generator | 2 +-
 teamd-lvl1.target            | 2 +-
 teamd-lvl2-service-generator | 2 +-
 teamd-lvl2.target            | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/teamd-lvl1-service-generator b/teamd-lvl1-service-generator
index 613a088..8cc6adb 100755
--- a/teamd-lvl1-service-generator
+++ b/teamd-lvl1-service-generator
@@ -3,7 +3,7 @@
 destunitdir=${1:-/tmp}
 
 # Do nothing if target is disabled
-[ -e /etc/systemd/system/multi-user.target.wants/teamd-lvl1.target ] || exit 0
+[ -e /etc/systemd/system/network.target.wants/teamd-lvl1.target ] || exit 0
 
 [ -f /etc/sysconfig/teamd ] && . /etc/sysconfig/teamd
 
diff --git a/teamd-lvl1.target b/teamd-lvl1.target
index 1623bca..4376c12 100644
--- a/teamd-lvl1.target
+++ b/teamd-lvl1.target
@@ -3,4 +3,4 @@ Description=Create team interfaces (lvl 1)
 Before=network.service
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=network.target
diff --git a/teamd-lvl2-service-generator b/teamd-lvl2-service-generator
index ce61ff0..f49125c 100755
--- a/teamd-lvl2-service-generator
+++ b/teamd-lvl2-service-generator
@@ -3,7 +3,7 @@
 destunitdir=${1:-/tmp}
 
 # Do nothing if target is disabled
-[ -e /etc/systemd/system/multi-user.target.wants/teamd-lvl2.target ] || exit 0
+[ -e /etc/systemd/system/network.target.wants/teamd-lvl2.target ] || exit 0
 
 [ -f /etc/sysconfig/teamd ] && . /etc/sysconfig/teamd
 
diff --git a/teamd-lvl2.target b/teamd-lvl2.target
index 63a5a28..51860f0 100644
--- a/teamd-lvl2.target
+++ b/teamd-lvl2.target
@@ -4,4 +4,4 @@ Before=network.service
 After=teamd-lvl1.target
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=network.target
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libteam.git/commitdiff/9871639ceffb7c6c4c39174d5f2288e34fe319f6



More information about the pld-cvs-commit mailing list