diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-01-29 18:38:38 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-02-11 18:30:36 +0000 |
commit | a4d9c63a8c5fb3d9b96baf9000b6b79160e91966 (patch) | |
tree | 3873c11a488d621030060ae275907344da8ebe26 /openstack/etc/systemd/system/openvswitch-initialize-db.service | |
parent | 3d04edd5e46aee42542bcb8f051534d2bf9cbfed (diff) | |
download | definitions-a4d9c63a8c5fb3d9b96baf9000b6b79160e91966.tar.gz |
WIP: Reorganize services - It is not working
Diffstat (limited to 'openstack/etc/systemd/system/openvswitch-initialize-db.service')
-rw-r--r-- | openstack/etc/systemd/system/openvswitch-initialize-db.service | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openstack/etc/systemd/system/openvswitch-initialize-db.service b/openstack/etc/systemd/system/openvswitch-initialize-db.service index 9f3c2e80..3c564c5a 100644 --- a/openstack/etc/systemd/system/openvswitch-initialize-db.service +++ b/openstack/etc/systemd/system/openvswitch-initialize-db.service @@ -1,9 +1,10 @@ [Unit] Description=Run openvswitch-initialize-db (once) -Requires=openvswitch-db-server.service -After=openvswitch-db-server.service +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 -Restart=no +ExecStart=/bin/touch /usr/local/var/run/openvswitch/openvswitch-initialize-db-flag |