If I start openais from the terminal with -f and there is an error early
on in the startup, I get no messages. aisexec simply dies quietly.

This patch enables STDERR logging when the daemon is started in the
foreground so you can see what is going on if it fails.

Signed-Off-By: Patrick Caulfield <[EMAIL PROTECTED]>
Index: trunk/exec/main.c
===================================================================
--- trunk/exec/main.c	(revision 1489)
+++ trunk/exec/main.c	(working copy)
@@ -453,6 +454,7 @@
 		switch (ch) {
 			case 'f':
 				background = 0;
+				logsys_config_mode_set (LOG_MODE_OUTPUT_STDERR|LOG_MODE_FLUSH_AFTER_CONFIG);
 				break;
 			case 'p':
 				setprio = 0;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to