summaryrefslogtreecommitdiff
path: root/rhel/etc_logrotate.d_openvswitch
diff options
context:
space:
mode:
Diffstat (limited to 'rhel/etc_logrotate.d_openvswitch')
-rw-r--r--rhel/etc_logrotate.d_openvswitch4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhel/etc_logrotate.d_openvswitch b/rhel/etc_logrotate.d_openvswitch
index d93a56e51..ed7d733c9 100644
--- a/rhel/etc_logrotate.d_openvswitch
+++ b/rhel/etc_logrotate.d_openvswitch
@@ -13,8 +13,8 @@
postrotate
# Tell Open vSwitch daemons to reopen their log files
if [ -d /var/run/openvswitch ]; then
- for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
- ovs-appctl -t "${pidfile%%.pid}" vlog/reopen 2>/dev/null || :
+ for ctl in /var/run/openvswitch/*.ctl; do
+ ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
done
fi
endscript