[Pacemaker] About a process name to output in log.

Andrew Beekhof andrew at beekhof.net
Mon Sep 22 01:05:47 UTC 2014


On 22 Sep 2014, at 10:54 am, renayama19661014 at ybb.ne.jp wrote:

> Hi Andrew,
> 
> Thank you for comments.
> 
>>> In the log of latest Pacemaker, the name of the lrmd process is output by 
>> the name of the pacemaker_remoted process.
>>> We like that log is output by default as lrmd.
>>  
>> I think you just need: https://github.com/beekhof/pacemaker/commit/ad083a8
> 
> 
> But, I did not understand the meaning of your answer.
> 
> 
> It is SUPPORT_REMOTE macro to cause the macro of ENABLE_PCMK_REMOTE.
> If I cannot change SUPPORT_REMOTE by "configure" command, it is necessary to change Makefile.am every time.
> 
> Is my understanding wrong?

Without the above commit, the lrmd logs as 'paceamker_remoted' and pacemaker_remoted logs as 'lrmd'.
We just needed to swap the two cases.  Which is what the commit achieves.

> 
> 
> Best Regards,
> Hideo Yamauchi.
> 
> 
> 
> ----- Original Message -----
>> From: Andrew Beekhof <andrew at beekhof.net>
>> To: renayama19661014 at ybb.ne.jp; The Pacemaker cluster resource manager <pacemaker at oss.clusterlabs.org>
>> Cc: 
>> Date: 2014/9/19, Fri 20:50
>> Subject: Re: [Pacemaker] About a process name to output in log.
>> 
>> 
>> On 19 Sep 2014, at 5:04 pm, renayama19661014 at ybb.ne.jp wrote:
>> 
>>> Hi All,
>>> 
>>> In the log of latest Pacemaker, the name of the lrmd process is output by 
>> the name of the pacemaker_remoted process.
>>> We like that log is output by default as lrmd.
>> 
>> I think you just need: https://github.com/beekhof/pacemaker/commit/ad083a8
>> 
>>> These names seem to be changed on a macro.
>>> However, the option which even "configure" command changes this 
>> macro to does not seem to exist.
>>> 
>>>   * lrmd/Makefile.am
>>> (snip)
>>> pacemaker_remoted_CFLAGS= -DSUPPORT_REMOTE
>>> (snip)
>>>   * lrmd/main.c
>>> (snip)
>>> #if defined(HAVE_GNUTLS_GNUTLS_H) && defined(SUPPORT_REMOTE)
>>> #  define ENABLE_PCMK_REMOTE
>>> #endif
>>> (snip)
>>> #ifndef ENABLE_PCMK_REMOTE
>>>      crm_log_preinit("lrmd", argc, argv);
>>>      crm_set_options(NULL, "[options]", long_options,
>>>                      "Daemon for controlling services confirming to 
>> different standards");
>>> #else
>>>      crm_log_preinit("pacemaker_remoted", argc, argv);
>>>      crm_set_options(NULL, "[options]", long_options,
>>>                      "Pacemaker Remote daemon for extending pacemaker 
>> functionality to remote nodes.");
>>> #endif
>>> (snip)
>>> 
>>> 
>>> Please examine the option of the "configure" command to give 
>> macro.
>>> 
>>> Best Regards,
>>> Hideo Yamauchi.
>>> 
>>> 
>>> _______________________________________________
>>> 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://bugs.clusterlabs.org
>> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140922/f934e3bb/attachment-0004.sig>


More information about the Pacemaker mailing list