Ack,
Mathi.

On Thu, Jun 29, 2017 at 6:22 PM, Alex Jones <[email protected]> wrote:

> plmcd exhibits strange behaviour when starting and stopping (stuck in
> calls to
> syslog, not starting services, etc.)
>
> osaf/config.h is not included when building plmcd, and so plmcd doesn't
> use the
> systemd calls
>
> include "osaf/config.h" so plmcd knows whether or not to use systemd
> ---
>  src/plm/plmcd/plmc_read_config.c | 1 +
>  src/plm/plmcd/plmcd.c            | 2 ++
>  2 files changed, 3 insertions(+)
>
> diff --git a/src/plm/plmcd/plmc_read_config.c b/src/plm/plmcd/plmc_read_
> config.c
> index 021579c..5641b6f 100644
> --- a/src/plm/plmcd/plmc_read_config.c
> +++ b/src/plm/plmcd/plmc_read_config.c
> @@ -33,6 +33,7 @@
>  #include <errno.h>
>  #include <syslog.h>
>
> +#include "osaf/config.h"
>  #include "plm/plmcd/plmc.h"
>
>  static int checkfile(char *buf)
> diff --git a/src/plm/plmcd/plmcd.c b/src/plm/plmcd/plmcd.c
> index 6421628..767b9f2 100644
> --- a/src/plm/plmcd/plmcd.c
> +++ b/src/plm/plmcd/plmcd.c
> @@ -54,6 +54,8 @@
>
>  #include <arpa/inet.h>
>
> +#include "osaf/config.h"
> +
>  #if (ENABLE_SYSTEMD == 1)
>  #include <systemd/sd-daemon.h>
>  #endif
> --
> 2.7.5
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to