metal/mtce/src/pmon
Eric MacDonald 8b757de303 Make pmon-restart honour startuptime config option
Each monitored process's config file contains a startuptime
label that specifies how many seconds it takes for that newly
started process to stabalize and produce its pidfile.

The pmon-restart feature needs to delay monitoring
newly restarted process for 'startuptime' seconds.

Failing to do so can cause it to fail the restarted
process to early if there is pidfile creation delay.

Test Plan:

PASS: Verify collectd pmon-restart function with soak ;
      > 5000+ collectd pmon-restarts.
PASS: Verify pmond regression test suite (test-pmon-action.sh)
      > restart command ; graceful restart all monitored processes. (5 loops)
      > kill command    ; kill and recover all monitored processes. (5 loops)

Regression:

PASS: Verify pmon-stop command/function
PASS: Verify pmon-start command/function also honors the startuptime.
PASS: Verify pmon-stop auto start after auto-start timeout
PASS: Verify System Install
PASS: Verify Patching (soak)

Change-Id: I9fd7bba8e49fe4c28281539ab4930bdac370ef11
Closes-Bug: #1844724
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2019-10-07 09:14:33 -04:00
..
scripts Merge "Scripts: pmon-test openrc file call" 2019-09-17 21:14:24 +00:00
Makefile Add EXTRALDFLAGS to linker in a number of Makefiles 2019-02-28 22:34:54 -06:00
pmon.h Remove include bits/siginfo.h from pmon.h 2019-02-28 22:34:54 -06:00
pmonAlarm.cpp Modify a memory leak bug in Pmon alarm. 2019-07-20 08:45:10 +08:00
pmonAlarm.h Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
pmonFsm.cpp Make pmon-restart honour startuptime config option 2019-10-07 09:14:33 -04:00
pmonHdlr.cpp Make pmon-restart honour startuptime config option 2019-10-07 09:14:33 -04:00
pmonInit.cpp Output error Full_init_reqd parameter value in a debug log 2019-05-11 15:07:28 +08:00
pmonMsg.cpp Add 50 byte hostname support to maintenance 2019-07-12 12:20:08 +00:00