summaryrefslogtreecommitdiff
path: root/xenserver/etc_logrotate.d_vswitch
diff options
context:
space:
mode:
Diffstat (limited to 'xenserver/etc_logrotate.d_vswitch')
-rw-r--r--xenserver/etc_logrotate.d_vswitch14
1 files changed, 14 insertions, 0 deletions
diff --git a/xenserver/etc_logrotate.d_vswitch b/xenserver/etc_logrotate.d_vswitch
new file mode 100644
index 000000000..dae235bd5
--- /dev/null
+++ b/xenserver/etc_logrotate.d_vswitch
@@ -0,0 +1,14 @@
+# Copyright (C) 2009 Nicira Networks, 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/ovs-vswitchd.log {
+ sharedscripts
+ postrotate
+ # Send sighup to vswitch which will cause it to reopen its log files.
+ /sbin/service vswitch reload
+ endscript
+}