summaryrefslogtreecommitdiff
path: root/openvswitch.configure
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-29 16:20:22 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-11 18:30:36 +0000
commit3d04edd5e46aee42542bcb8f051534d2bf9cbfed (patch)
tree0e0e11933e6543a5b70421a395743379f9123fb0 /openvswitch.configure
parent1875abd2e300c273ffa3325704cc4b41c5c0cd6a (diff)
downloaddefinitions-3d04edd5e46aee42542bcb8f051534d2bf9cbfed.tar.gz
Link all the neutron and openvswitch services
Diffstat (limited to 'openvswitch.configure')
-rw-r--r--openvswitch.configure11
1 files changed, 7 insertions, 4 deletions
diff --git a/openvswitch.configure b/openvswitch.configure
index aec66bd2..ec219851 100644
--- a/openvswitch.configure
+++ b/openvswitch.configure
@@ -19,7 +19,10 @@ set -e
ROOT="$1"
-ln -sf "/etc/systemd/system/openvswitch-db-server.service" \
- "$ROOT/etc/systemd/system/multi-user.target.wants/openvswitch-db-server.service"
-ln -sf "/etc/systemd/system/openvswitch.service" \
- "$ROOT/etc/systemd/system/multi-user.target.wants/openvswitch.service"
+services=("openvswitch-setup.service" "openvswitch-db-server.service"
+ "openvswitch-initialize-db.service" "openvswitch.service")
+
+for service in ${services[@]}; do
+ ln -sf "/etc/systemd/system/$service" \
+ "$ROOT/etc/systemd/system/multi-user.target.wants/$service"
+done