summaryrefslogtreecommitdiff
path: root/openstack/etc/systemd/system/openvswitch-initialize-db.service
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-12 17:26:00 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-12 17:26:00 +0000
commit88c8c3fc93c6b7c3b2f5e54dd19d5a84ae126626 (patch)
tree97076d768900b0f1f0361efd899ac75cf0937c6c /openstack/etc/systemd/system/openvswitch-initialize-db.service
parent1319309d3ff4eb85cb0e7e6cb178cb56ff116524 (diff)
downloaddefinitions-baserock/franred/only-openstack-packages.tar.gz
Diffstat (limited to 'openstack/etc/systemd/system/openvswitch-initialize-db.service')
-rw-r--r--openstack/etc/systemd/system/openvswitch-initialize-db.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstack/etc/systemd/system/openvswitch-initialize-db.service b/openstack/etc/systemd/system/openvswitch-initialize-db.service
new file mode 100644
index 00000000..3c564c5a
--- /dev/null
+++ b/openstack/etc/systemd/system/openvswitch-initialize-db.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run openvswitch-initialize-db (once)
+After=local-fs.target openvswitch-db-server.service
+
+ConditionPathExists=!/usr/local/var/run/openvswitch/openvswitch-initialize-db-flag
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ovs-vsctl --no-wait init
+ExecStart=/bin/touch /usr/local/var/run/openvswitch/openvswitch-initialize-db-flag