]> git.proxmox.com Git - openvswitch.git/commitdiff
use LOG_CONS for syslog
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 21 Dec 2013 05:13:59 +0000 (06:13 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 21 Dec 2013 05:13:59 +0000 (06:13 +0100)
We start vswitch deamon early in runlevel S when syslog service is not
available. So we log to console if syslog fails.

pvepatches/series
pvepatches/use-log-cons-for-syslog.patch [new file with mode: 0644]

index 2611efd3b2b1c8fd1a8d1fc844cdff5322d310b0..df23692e828c63fbc6db3da1ebf4c7fe5fb58a56 100644 (file)
@@ -1,3 +1,4 @@
 remove-unneeded-from-control.patch
 fix-init-script-patch
 fix-init-depends.patch
+use-log-cons-for-syslog.patch
diff --git a/pvepatches/use-log-cons-for-syslog.patch b/pvepatches/use-log-cons-for-syslog.patch
new file mode 100644 (file)
index 0000000..46cbf11
--- /dev/null
@@ -0,0 +1,13 @@
+Index: new/lib/vlog.c
+===================================================================
+--- new.orig/lib/vlog.c        2013-12-18 07:59:19.000000000 +0100
++++ new/lib/vlog.c     2013-12-21 06:12:18.760775259 +0100
+@@ -604,7 +604,7 @@
+      * private copy to suppress memory leak warnings in case openlog() does
+      * make its own copy.) */
+     program_name_copy = program_name ? xstrdup(program_name) : NULL;
+-    openlog(program_name_copy, LOG_NDELAY, LOG_DAEMON);
++    openlog(program_name_copy, LOG_NDELAY|LOG_CONS, LOG_DAEMON);
+     now = time_wall_msec();
+     if (now < 0) {