monitor: Use the systemd Unix socket 82/281482/2 accepted/tizen/unified/20220920.110715
authorSung-hun Kim <sfoon.kim@samsung.com>
Mon, 19 Sep 2022 10:51:54 +0000 (19:51 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 20 Sep 2022 00:53:33 +0000 (00:53 +0000)
commit5641d5d99c307ab05eb93a2697f025866754e6ce
tree31cf8fc398896a70ca743c1b98125ea600933a45
parent39b88d4e37ffe12b775f7932a35cb3819486c717
monitor: Use the systemd Unix socket

Systemd creates an Unix socket when the system is booted on
by using existing configuration files in /usr/lib/systemd.

Previously, the resource monitor always creates a new Unix
socket whether the socket exists or not. From now on, the
resource monitor checks that the Unix socket is existed on
the given path. If so, it uses the Unix socket instead of
open a newer one. By doing so, the permission of the Unix
socket can follow the given configuration denoted in the
Systemd socket configuration file.

Change-Id: I1eab46cd238340cc9700e1a2d52481270c06b8b1
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
src/monitor/request-handler.c
systemd/pass-resource-monitor.socket.in