Avoid heavy command lines in log KVP

:Release Notes:
Command line may spoil PmLog's JSON, causing INVALID_JSON in logs.

:Detailed Notes:

:Testing Performed:
luna-send luna://com.bar.foo/message '{"a": true}'
grep INVALID_JSON /var/log/messages

:QA Notes:

:Issues Addressed:
[CMB-1433] Fix wrong json when service not found

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I22cf1a1e480f092a274cd445f89857f3c29b6ff5
Reviewed-on: https://g2g.lgsvl.com/6473
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Lower severity for EPIPE

:Release Notes:
When EPIPE is received, the peer has disconnected. The condition is
harmless, and shall not be considered an error.

:Detailed Notes:

:Testing Performed:
Build and automatic tests.

:QA Notes:

:Issues Addressed:
[CMB-1433] Lower severity of log message EPIPE

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I99c4a3e1c7dac17dfd17ee3aeb013569c6b3b5db
Reviewed-on: https://g2g.lgsvl.com/6479
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Avoid sending monitor status if not registered

:Release Notes:
It doesn't make sense to try to send monitor status if hub wasn't able
or refused to register a service. This change suppresses pointless error
message LSHUB_NO_FD.

:Detailed Notes:

:Testing Performed:
Build, automated tests, log watching.

:QA Notes:

:Issues Addressed:
[CMB-1742] Fix sending monitor status to denied services

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I33bc70298eb17606d175b9473c08acddd37b1aac
Reviewed-on: https://g2g.lgsvl.com/6480
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
Lower severity of ECONNRESET

:Release Notes:
If peer crashed or otherwise wasn't able to close socket properly,
a warning shall be sent to the log.

:Detailed Notes:

:Testing Performed:
Build, automatic tests and log watching.

:QA Notes:

:Issues Addressed:
[CMB-1744] Lower severity of log message ECONNRESET

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I228dd8b67b03f1b2a9193de44cde325fc609c562
Reviewed-on: https://g2g.lgsvl.com/6481
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Sergiy Kryvonos <sergiy.kryvonos@lge.com>
add constants to represent no flags

:Release Notes:

:Detailed Notes:
- added LUNA_METHOD_FLAGS_NONE
- added LUNA_SIGNAL_FLAGS_NONE
- added LUNA_PROPERTY_FLAGS_NONE

:Testing Performed:
desktop build

:QA Notes:

:Issues Addressed:
[CMB-2041] Add constants to represent no flags in luna-service2

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>

Change-Id: I24f9628f6a68360e61585c3f80d9f1932abb335e
Reviewed-on: https://g2g.lgsvl.com/6526
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Tested-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Add ability to set hubs' sockets directory

:Release Notes:
Add 'LS_HUB_LOCAL_SOCKET_DIRECTORY' environmental variable,
which points to hubs' custom local sockets location.

:Detailed Notes:

:Testing Performed:
Unit-tests. MiniBAT

:QA Notes:

:Issues Addressed:
[CMB-1888] We should be able to direct LS2 services to other bus

Open-webOS-DCO-1.0-Signed-off-by: Alexandr Smoktal <alexandr.smoktal@lge.com>

Change-Id: I9821c284ea3fd0f1f48e31f0478db83ee43fed26
Reviewed-on: https://g2g.lgsvl.com/5798
Reviewed-by: DCO Verification
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Revert "Wait for populate_volatile before cre..."

:Release Notes:
Restore early startup of luna-service2 private hubd

:Detailed Notes:
webOS wouldn't boot in some distributions because of early dependency on
ls-hubd_private. Thus, the hubd should start as early as possible for
backward compatibility.

:Testing Performed:
Manual testing on device.

:QA Notes:

:Issues Addressed:
[CMB-1797] webOS won't boot in some distributions because of late ls-hubd_private start

This reverts commit c251643d1e79da3f5f39cf39fc425e5db181715f.

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I4a6e361aff5c03e98f56031152a9f7b08e86d746
Reviewed-on: https://g2g.lgsvl.com/6506
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Make hubd write local sockets to /var/run

:Release Notes:
Make hubd write local sockets rendez-vous points to the standard
directory /var/run/luna-service2.

:Detailed Notes:
Writing sockets to /tmp isn't standard, and may not work in case when
the directory gets symlinked. This change will make the hub write
rendez-vous points to /var/run, which is assumed to be treated gently.

:Testing Performed:
Integration tests. Manual testing on device.

:QA Notes:

:Issues Addressed:
[CMB-1797] webOS won't boot in some distributions because of late ls-hubd_private start

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: I12d98ec5f267a7e47b574e07a02bf907941b0fce
Reviewed-on: https://g2g.lgsvl.com/6507
Reviewed-by: DCO Verification
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Merge branch 'develop'