[Pacemaker] Question of the syslog output in pacemaker-1.1

Andrew Beekhof andrew at beekhof.net
Tue Apr 19 09:13:34 UTC 2011


On Tue, Apr 19, 2011 at 9:25 AM, Yuusuke IIDA
<iidayuus at intellilink.co.jp> wrote:
> Hi, Andrew
>
> I use corosync-1.3.0 and Pacemaker-1.1.5.
>
> The log outputs it via rsyslog.
>
> I changed syslog_facility of corosync.conf to local1 and was going to let a
> designated file output the log of the cluster.
>
> However, setting was not reflected for a process performed of fork by pacemakerd.

Ah, I see the problem.
The following patch will be in devel shortly

diff -r 7225f68ae6e9 mcp/pacemaker.c
--- a/mcp/pacemaker.c	Mon Apr 18 16:52:22 2011 +0200
+++ b/mcp/pacemaker.c	Tue Apr 19 11:12:09 2011 +0200
@@ -692,7 +692,7 @@ main(int argc, char **argv)
 	crm_make_daemon(crm_system_name, TRUE, pid_file);

 	/* Only Re-init if we're running daemonized */
-	crm_log_init_quiet(NULL, LOG_INFO, TRUE, FALSE, argc, argv);
+	crm_log_init(NULL, LOG_INFO, TRUE, FALSE, 0, NULL);
     }

     crm_info("Starting Pacemaker %s (Build: %s): %s\n", VERSION,
BUILD_VERSION, CRM_FEATURES);


>
> facility of a process performed of fork by pacemakerd remained daemon.
>
> It was only corosync and pacemakerd that the setting that I changed became
> effective.
>
> Why is setting of syslog_facility of corosync.conf ineffective in a process
> performed of fork by pacemakerd?
>
> Please teach a method to change facility of a process performed of fork by
> pacemakerd.
>
> Best Regards,
> Yuusuke IIDA
> --
> ----------------------------------------
> METRO SYSTEMS CO., LTD
>
> Yuusuke Iida
> Mail: iidayuus at intellilink.co.jp
> ----------------------------------------
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list