Set software-controller-daemon and software-agent under pmon

This commit add software-controller-daemon and software-agent under
pmon monitor.

Test Plan:
PASS: Kill software-controller-daemon process, verify it is started
by pmon.
PASS: Kill software-agent process, verify it is started by pmon.
PASS: pmon-restart, -stop, -start
PASS: DX install with couple lock/unlock/swact
PASS: SX install with couple lock/unlock
PASS: No error on pmon.log during the tests above

Story: 2010676
Task: 50508

Change-Id: Ifb57ac78bce7f4976418a550668d1d07aae92ecf
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>
This commit is contained in:
Luis Eduardo Bonatti
2024-06-26 17:47:24 -03:00
parent 345e8338f5
commit b9d94f1879
4 changed files with 7 additions and 1 deletions

View File

@@ -2,9 +2,9 @@
export DH_VERBOSE = 1
export PYBUILD_NAME = software
export PBR_VERSION=1.0.0
PMONDIR := ${ROOT}/usr/share/starlingx/pmon.d
ROOT := $(CURDIR)/debian/tmp
PMONDIR := ${ROOT}/usr/share/starlingx/pmon.d
export PLATFORM_RELEASE="$(shell grep SW_VERSION /usr/include/build_info.h | cut -d ' ' -f 3)"
export METADATA_FILE="starlingx-${PLATFORM_RELEASE}.0-metadata.xml"

View File

@@ -7,3 +7,5 @@ run/software-tmpdirs.conf
usr/bin
usr/lib/python*/dist-packages/*
usr/sbin
usr/share/starlingx/pmon.d/software-controller-daemon.conf
usr/share/starlingx/pmon.d/software-agent.conf

View File

@@ -10,6 +10,8 @@ ExecStart=/etc/init.d/software-agent start
ExecStop=/etc/init.d/software-agent stop
ExecReload=/etc/init.d/software-agent restart
PIDFile=/var/run/software-agent.pid
# process recovery is handled by pmon
Restart=no
[Install]
WantedBy=multi-user.target

View File

@@ -10,6 +10,8 @@ ExecStart=/etc/init.d/software-controller-daemon start
ExecStop=/etc/init.d/software-controller-daemon stop
ExecReload=/etc/init.d/software-controller-daemon restart
PIDFile=/var/run/software-controller-daemon.pid
# process recovery is handled by pmon
Restart=no
[Install]
WantedBy=multi-user.target