From ced15b1b8f1c52d3c98f0017afc071e264148651 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Mon, 16 Mar 2015 15:12:14 +0000 Subject: Move systemd units to /usr/lib/systemd/system as defined in systemd documentation See http://www.freedesktop.org/software/systemd/man/systemd.unit.html for more information --- .../usr/lib/systemd/system/openvswitch-initialize-db.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 openstack/usr/lib/systemd/system/openvswitch-initialize-db.service (limited to 'openstack/usr/lib/systemd/system/openvswitch-initialize-db.service') diff --git a/openstack/usr/lib/systemd/system/openvswitch-initialize-db.service b/openstack/usr/lib/systemd/system/openvswitch-initialize-db.service new file mode 100644 index 00000000..3c564c5a --- /dev/null +++ b/openstack/usr/lib/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 -- cgit v1.2.1