Despite what it says in the logs, if there is an error corosync always
exits with status code 1.

openais used to exit with the error code it printed (enum e_ais_done) so
it was easy to diagnose (in init-scripts etc) just what went wrong.

Is there a reason why this feature was removed?

If not, here is a patch to re-instate it...

Chrissie
Index: exec/util.c
===================================================================
--- exec/util.c	(revision 1709)
+++ exec/util.c	(working copy)
@@ -87,7 +87,7 @@
 {
 	log_printf (LOG_LEVEL_ERROR, "AIS Executive exiting "
 		"with status %d at %s:%u.\n", err, file, line);
-	exit (EXIT_FAILURE);
+	exit (err);
 }
 
 #define min(a,b) ((a) < (b) ? (a) : (b))
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to