Hi, Andrew

(2011/04/19 18:13), Andrew Beekhof wrote:
On Tue, Apr 19, 2011 at 9:25 AM, Yuusuke IIDA
<iiday...@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);

I confirmed that a problem was solved by this correction.
http://hg.clusterlabs.org/pacemaker/devel/rev/b162c2b84e16

Give a quick response, and thank you.
Yuusuke



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: iiday...@intellilink.co.jp
----------------------------------------

_______________________________________________
Pacemaker mailing list: Pacemaker@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


_______________________________________________
Pacemaker mailing list: Pacemaker@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


--
----------------------------------------
METRO SYSTEMS CO., LTD

Yuusuke Iida
Mail: iiday...@intellilink.co.jp
----------------------------------------

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to