From ef27c10c212547850b314ebb53ce714fb07dbb0e Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Fri, 1 May 2015 14:39:04 +0000 Subject: openstack: ensure that /var/run/openvswitch exists This directory is created by the setup script, but as /var/run is a symbolic link to /run, which is a tmpfs mounting point, the directory will not persist across reboots. Hence, ensure that the directory exists before starting the services that require it. Note that we can't get away by adding the openvswitch-setup.service to the Wants of openvswitch.service and openvswitch-db-server.services, as those are enabled and started by the Ansible setup script, and so would create a deadlock. Also, remove non-existent service from the After section. --- openstack/usr/lib/systemd/system/openvswitch.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack/usr/lib/systemd/system/openvswitch.service') diff --git a/openstack/usr/lib/systemd/system/openvswitch.service b/openstack/usr/lib/systemd/system/openvswitch.service index 70a640de..113911f6 100644 --- a/openstack/usr/lib/systemd/system/openvswitch.service +++ b/openstack/usr/lib/systemd/system/openvswitch.service @@ -1,11 +1,11 @@ [Unit] Description=Open vSwitch Daemon -After=openvswitch-initialize-db.service Before=network-pre.target Wants=network-pre.target [Service] Type=forking +ExecStartPre=-/usr/bin/mkdir -p /var/run/openvswitch ExecStart=/usr/sbin/ovs-vswitchd --pidfile --detach [Install] -- cgit v1.2.1