Support socket activation of systemd 88/308788/16
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 1 Apr 2024 05:55:44 +0000 (14:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 3 Apr 2024 05:06:16 +0000 (14:06 +0900)
commit65ff94a8fb099b1df1b4ac55d7e9b045c1b7bffd
tree2811a88e254ec4e37fab470f8ce4a7cf5df8d725
parent70c031719d308c436e138301cfd982e747d2396d
Support socket activation of systemd

This patch is for linux daemon and service.
The rpc-port creates the socket path without communication with amd if
the caller is a daemon or service. The process name must have "d::" prefix
as below:
 e.g. "d::Benchmark"
After this is applied, the rpc-port supports socket activation of system.
The socket path of the daemon is "/run/aul/rpcport/.<proc_name>::<port_name>".

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/308786/

Change-Id: Ifdd411b2e8b9c745cb9c1cdd9e930df7ab628b9a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 files changed:
CMakeLists.txt
benchmark/server/tidl/main.cc
benchmark/tool/main.cc
packaging/rpc-port.spec
src/CMakeLists.txt
src/aul-internal.cc
src/aul-internal.hh
src/file-monitor-internal.cc [new file with mode: 0644]
src/file-monitor-internal.hh [new file with mode: 0644]
src/proxy-internal.cc
src/proxy-internal.hh
src/rpc-port.cc
src/server-socket-internal.cc
src/server-socket-internal.hh
src/stub-internal.cc
src/stub-internal.hh
test/unit_tests/main.cc
test/unit_tests/mock/inotify_mock.cc [new file with mode: 0644]
test/unit_tests/mock/inotify_mock.hh [new file with mode: 0644]
test/unit_tests/rpc_port_test.cc