ls-hubd_watchdog.conf isn't installed

:Release Notes:
The new watchdog - ls-hubd_watchdog.conf - isn't being installed since
the webOS macro build_daemon() only automatically handles files needing
configuration.

:Detailed Notes:
The easiest way to get this file installed properly is to trick the
system by renaming it as if it needs to be configured.  Though it
doesn't have any configurable paths, the config process is tolerant
of files that do not have any actual changes - but the build_daemon()
function then install this file correctly

:Testing Performed:
Local build - examine both the 'images' dir and the package file to
verify that the new watchdog is indeed installed

:QA Notes:

:Issues Addressed:
[GF-45875] ls-hubd_p*_watchdog not working
[GF-52624] CCC: luna-service2=165

Open-webOS-DCO-1.0-Signed-off-by: Ed Chejlava <ed.chejlava@lge.com>

Change-Id: Icc008683c14b50a30bd183829aa4450ee854ed60
Reviewed-on: https://g2g.palm.com/4022
Reviewed-by: DCO Verification
Reviewed-by: Ed Chejlava <ed.chejlava@lge.com>
Tested-by: Ed Chejlava <ed.chejlava@lge.com>
Fix watchdog, add oom exclusion to ls-hubd_p*.conf

:Release Notes:
Current installed ls-hubd_watchdog doesn't work - it has a spurious
paren.  Add "oom score never" to both ls-hubd jobs as we do not
want them to ever be killed to free up memory.

:Detailed Notes:
ls-hubd watchdog has not worked since webOS 3.0.5.  It was missing bits
and pieces, and until this fix had at least one syntax error in it.
Also, we've seen crashes that seem to be occurring due to init killing
ls-hubd* due to an OOM condition.  The "oom score" is fairly new in
Upstart so I'll try setting it to "oom score never" to see if that
prevents the crashes.

:Testing Performed:
kill (*) ls-hubd_* and verify that the reboot happens.
miniBAT results attached to CCC.
(*): Some signals - HUP, QUIT, INT - end the process the "normal"
way and won't work to test the watchdog.  I found that TRAP, ABRT,
KILL, SEGV all worked to simulate a crash.

:QA Notes:

:Issues Addressed:
[GF-52636] ls2 watchdog script incorrectly installed
[GF-52116] Loading Settings panel during youtube play in browser
           crashes system
[GF-52624] CCC: luna-service2=166

Open-webOS-DCO-1.0-Signed-off-by: Ed Chejlava <ed.chejlava@lge.com>

Change-Id: I357e75a1cdb6aeb5a463496f47013e5e94eae3c1
Reviewed-on: https://g2g.palm.com/4037
Reviewed-by: DCO Verification
Reviewed-by: Ed Chejlava <ed.chejlava@lge.com>
Tested-by: Ed Chejlava <ed.chejlava@lge.com>
Fix coverity issues in tests.

:Release Notes:
Fix sockets closing in test.
Fix unchecked value in test.
Fix `while` statement in test.

:Detailed Notes:

:Testing Performed:
Tests were run.

:QA Notes:

:Issues Addressed:
[GF-53282] Luna-service2: fix coverity issues

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

Change-Id: I17e08b8e8aeec061c34255389be5b1c3a070e70d
Reviewed-on: https://g2g.palm.com/4076
Reviewed-by: DCO Verification
Reviewed-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Tested-by: Alexandr Smoktal <alexandr.smoktal@lge.com>
Reviewed-by: Mykola Kryvonos <mykola.kryvonos@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Destroy GSource object after detaching from loop

:Release Notes:
Remove memory leak of GSource

:Detailed Notes:

:Testing Performed:
Internal unit tests with valgrind
Behaviour of ls-hubd on qemux86

:QA Notes:

:Issues Addressed:
[GF-53002] ls-hubd is leaking memory

Open-webOS-DCO-1.0-Signed-off-by: Alekseyev Oleksandr<alekseyev.oleksandr@lge.com>

Change-Id: Ibd983c572ffe8351cb9c25b68c59068c987147e8
Reviewed-on: https://g2g.palm.com/4087
Reviewed-by: DCO Verification
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Instead of relying on existing service/role directories create them on startup

It makes the service start a lot easier when the hub daemon takes care about creating the
service/role directories on its own instead of doing this job as part of the init script
(which is very close to the daemon anyway).

Upstream-Status: pending (http://github.com/openwebos/luna-service2)

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
Add support for systemd

In order to synchronize our service launch on boot we need to add explicit support for
systemd to notify systemd when we're really set up and other depending services can be
launched. As ls-hubd is a critical component of the system it has to be really up before
anyone can use it in order not to fail.

Upstream-Status: pending (http://github.com/openwebos/luna-service2)

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
Add additional search path to pkgconfig configuration

Some components include luna-service.h instead of luna-service2/luna-service.h so
it's usefull to have both include paths supported in our pkgconfig configuration.

Upstream-Status: pending (http://github.com/openwebos/luna-service2)

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
Change path to QtWebProcess executable in pub/prv hub configuration

Upstream-Status: Inappropiate [configuration]

Signed-off-by: Simon Busch <morphis@gravedo.de>
Make it possible to retrieve the process id for the sender of a message

Upstream-Status: pending (http://github.com/openwebos/luna-service2)

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>