metal/mtce/src/scripts
Enzo Candotti 23143abbca Update crashDumpMgr to source config from envfile
This commit updates the crashDumpMgr service in order to:
- Cleanup of current service naming and packaging to follow the
  standard Linux naming convention:
    - Repackage /etc/init.d/crashDumpMgr to
      /usr/sbin/crash-dump-manager
    - Rename crashDumpMgr.service to crash-dump-manager.service
- Add EnvironmentFile to crash-dump-manager service file to source
  configuration from /etc/default/crash-dump-manager.
- Update ExecStart of crash-dump-manager service to use parameters
  from EnvironmentFile
- Update crash-dump-manager service dependencies to run after
  config.service.
- Update logrotate configuration to support the retention polices of
  the maximum files. The “rotate 1” option was removed to permit
  crash-dump-manager to manage pruning old files.
- Modify the crash-dump-manager script to enable updates to the
  max_files parameter to a lower value. If there are currently more
  files than the new max_files value, the oldest files will be
  deleted the next time a crash dump file needs to be stored, thus
  adhering to the new max_files values.

Test Plan:

PASS: Build ISO and perform a fresh install. Verify the new
crash-dump-manager service is enabled and working as expected.
PASS: Add and apply new crashdump service parameters and force a kernel
panic. Verify that after the reboot, the max_files, max_used,
min_available and max_size values are updated accordingly to the service
parameters values.
PASS: Verify that the crashdump files are rotated as expected.

Story: 2010893
Task: 48910

Change-Id: I4a81fcc6ba456a0d73067b77588ee4a125e44e62
Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com>
2023-10-06 23:06:54 +00:00
..
55-crash-dump-manager.preset Update crashDumpMgr to source config from envfile 2023-10-06 23:06:54 +00:00
collect_bmc.sh Add maintenance BMC info collect script 2020-10-15 15:41:51 -04:00
config Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
config.service Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
crash-dump-manager Update crashDumpMgr to source config from envfile 2023-10-06 23:06:54 +00:00
crash-dump-manager.service Update crashDumpMgr to source config from envfile 2023-10-06 23:06:54 +00:00
crash-dump-manager_envfile Update crashDumpMgr to source config from envfile 2023-10-06 23:06:54 +00:00
crashdump.logrotate Update crashDumpMgr to source config from envfile 2023-10-06 23:06:54 +00:00
dmemchk.sh Remove Resource Monitor ; aka rmon, from the load 2019-03-19 16:12:38 -04:00
goenabled Add LSB headers to mtce service scripts 2019-08-29 11:20:14 -05:00
goenabled.service De-branding in starlingx/metal: Titanium Cloud -> StarlingX 2020-04-03 07:58:25 +02:00
hbs-query [Trivial Fix] fix typos in docstrings 2019-02-21 14:46:06 +08:00
hbsAgent Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hbsClient Fix failing mtce services on Debian 2022-01-14 10:50:09 -03:00
hbsClient.conf Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hbsClient.service De-branding in starlingx/metal: Titanium Cloud -> StarlingX 2020-04-03 07:58:25 +02:00
hwclock.service Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
hwclock.sh Fix remaining failing mtce services on Debian 2022-01-25 12:10:39 -03:00
mgmtlinkup Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
mtc.conf Increase mtce host offline threshold to handle slow host shutdown 2023-06-16 18:14:08 +00:00
mtc.ini Change compute node to worker node personality 2018-12-13 13:08:48 -05:00
mtcAgent mtcAgent: Run in active mode 2022-09-13 21:38:50 +00:00
mtcClient Fix remaining failing mtce services on Debian 2022-01-25 12:10:39 -03:00
mtcClient.conf Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
mtcClient.service De-branding in starlingx/metal: Titanium Cloud -> StarlingX 2020-04-03 07:58:25 +02:00
mtcTest Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
mtce.logrotate Modify mtce daemon log rotation config files 2021-04-07 20:47:54 +00:00
mtce.syslog Setup mtce logfile config 2020-10-16 10:43:01 -04:00
mtcinit Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
mtclog Fix failing mtce services on Debian 2022-01-14 10:50:09 -03:00
mtclog.service De-branding in starlingx/metal: Titanium Cloud -> StarlingX 2020-04-03 07:58:25 +02:00
mtclogd.conf Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
runservices Add LSB headers to mtce service scripts 2019-08-29 11:20:14 -05:00
runservices.service De-branding in starlingx/metal: Titanium Cloud -> StarlingX 2020-04-03 07:58:25 +02:00
sched_trace Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
sensor_hp360_v1_ilo_v4.profile Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
sensor_hp380_v1_ilo_v4.profile Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
sensor_integration_profile.README Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
sensor_quanta_v1_ilo_v4.profile Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
store_trace Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
stress_ras.sh Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
stress_swact.sh Decouple Guest-server/agent from stx-metal 2018-09-18 17:15:08 -04:00
wipedisk Add mpath support to wipedisk script 2023-04-10 17:10:22 -03:00