vip-process: rework vip-agent 41/263441/4 accepted/tizen/6.5/unified/20211028.115453 accepted/tizen/unified/20210914.084920 submit/tizen/20210913.042525 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 2 Sep 2021 07:39:39 +0000 (16:39 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 13 Sep 2021 03:00:08 +0000 (12:00 +0900)
commitf689f1a2ee7b9deaee4a1e5d01edad75134dc9b9
tree97d88d0602f0b0cc958ae86f4c2f30c03179b9af
parentdb4d0e5c8d40cee3980574c552b8f29fc2d3f448
vip-process: rework vip-agent

vip-process now constructs vip configurations from each vip packages,
not from resourced itself. Each vip packages now define and install
vip configuration file at /etc/resourced/vip-process.d, and resourced
collects these configuration files. The format of new configuration
file is like below, and more option might be added in the future.

  [VIP_GROUP1]          // Section format: VIP_GROUP#
                           There can be multiple vip groups.
   If there is only one group, then just
   [VIP_GROUP] is possible.

  PROCESS=some_binary1 // Define vip processes.
  PROCESS=some_binary2
  ...

  SERVICE=some_unit1.service // Define vip services.
  SERVICE=some_unit2.service
  ...

  ACTION_ON_FAILURE=reboot  // Define action for the vip group.
                            // Currently only "reboot" is supported.

  [VIP_GROUP2]
  ...

Change-Id: I4d88f59a009a5a7800651a07f79ab37f2cfae719
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
CMakeLists.txt
packaging/resourced.spec
src/CMakeLists.txt
src/vip-agent/vip-process-iot-headless.conf [deleted file]
src/vip-agent/vip-process-tv.conf [deleted file]
src/vip-agent/vip-process.conf [deleted file]
src/vip-process/vip-process.c [moved from src/vip-agent/vip-process.c with 65% similarity]
src/vip-process/vip-process.h [moved from src/vip-agent/vip-process.h with 100% similarity]
src/vip-process/vip-release-agent.c [moved from src/vip-agent/vip-release-agent.c with 100% similarity]