summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/files
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2022-01-14 10:39:11 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-01-16 22:59:09 -0500
commit4667e968dfe9e3c2451242498a6746f7d21d6802 (patch)
treeed67cbc90dd7a974827a5d16c285c55007412670 /recipes-networking/openvswitch/files
parent9437f7060b34273c3713ea5ae25fa6fffde38113 (diff)
downloadmeta-virtualization-4667e968dfe9e3c2451242498a6746f7d21d6802.tar.gz
openvswitch: systemd: add option -p for mkir command
To avoid "cannot create directory '/var/log/openvswitch': File exists" when service is restart Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/openvswitch/files')
-rw-r--r--recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch b/recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch
index f7ec3fa0..8bda865f 100644
--- a/recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch
+++ b/recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch
@@ -96,7 +96,7 @@ index 74e5acb7f..39698f238 100644
96 ExecStartPre=/bin/rm -f /run/openvswitch.useropts 96 ExecStartPre=/bin/rm -f /run/openvswitch.useropts
97-ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch 97-ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
98-ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 98-ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch
99+ExecStartPre=-/bin/mkdir /run/openvswitch /var/log/openvswitch 99+ExecStartPre=-/bin/mkdir -p /run/openvswitch /var/log/openvswitch
100+ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch 100+ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
101 ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' 101 ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts'
102 ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' 102 ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi'