mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
Systemd unit file generates warnings about PID file path since /var/run is a legacy path so just use /run instead of /var/run. /var/run is a symlink of /run starting from RHEL7 (and any other distribution that uses systemd). Reported-at: https://bugzilla.redhat.com/1952081 Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
23 lines
675 B
Plaintext
23 lines
675 B
Plaintext
# Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
|
|
#
|
|
# Copying and distribution of this file, with or without modification,
|
|
# are permitted in any medium without royalty provided the copyright
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
# without warranty of any kind.
|
|
|
|
/var/log/openvswitch/*.log {
|
|
su root root
|
|
daily
|
|
compress
|
|
sharedscripts
|
|
missingok
|
|
postrotate
|
|
# Tell Open vSwitch daemons to reopen their log files
|
|
if [ -d /run/openvswitch ]; then
|
|
for ctl in /run/openvswitch/*.ctl; do
|
|
ovs-appctl -t "$ctl" vlog/reopen 2>/dev/null || :
|
|
done
|
|
fi
|
|
endscript
|
|
}
|