Skip to content

Commit

Permalink
debian: Let *-ctl handle runtime directory.
Browse files Browse the repository at this point in the history
This causes the /var/run/openvswitch directory being recreated when
service "stop" encounters failures, which causes container mount
failure after service restart of openvswitch-switch on Ubuntu.

The same was done in rhel service. See [1].

[1] 7a65e5a rhel: let *-ctl handle runtime directory

Acked-by: Roi Dayan <[email protected]>
Acked-by: Frode Nordahl <[email protected]>
Signed-off-by: Han Zhou <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
hzhou8 authored and igsilya committed Jan 14, 2025
1 parent 3d5ed8b commit 43754f1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions debian/openvswitch-switch.ovsdb-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
--no-record-hostname \
--no-monitor restart $OVS_CTL_OPTS
RuntimeDirectory=openvswitch
RuntimeDirectoryMode=0755
RuntimeDirectoryPreserve=yes

0 comments on commit 43754f1

Please sign in to comment.