metal/mtce/debian/deb_folder/mtce.install
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

49 lines
1.4 KiB
Plaintext

etc/bmc/server_profiles.d/sensor_hp360_v1_ilo_v4.profile
etc/bmc/server_profiles.d/sensor_hp380_v1_ilo_v4.profile
etc/bmc/server_profiles.d/sensor_quanta_v1_ilo_v4.profile
etc/collect.d/collect_bmc
etc/default/crash-dump-manager
etc/init.d/fsmon
etc/init.d/goenabled
etc/init.d/hbsClient
etc/init.d/mtcClient
etc/init.d/mtcalarm
etc/init.d/mtclog
etc/init.d/runservices
etc/logrotate.d/crashdump.logrotate
etc/logrotate.d/fsmon.logrotate
etc/logrotate.d/mtcalarm.logrotate
etc/logrotate.d/mtce.logrotate
etc/mtc.conf
etc/mtc.ini
etc/mtc/fsmond.conf
etc/mtc/tmp
etc/services.d/controller/mtcTest
etc/services.d/storage/mtcTest
etc/services.d/worker/mtcTest
etc/syslog-ng/conf.d/mtce.conf
etc/systemd/system-preset/
usr/lib/ocf/resource.d/platform/mtcAgent
usr/local/bin/fsmond
usr/local/bin/hbsAgent
usr/local/bin/hbsClient
usr/local/bin/mtcAgent
usr/local/bin/mtcClient
usr/local/bin/mtcalarmd
usr/local/bin/mtclogd
usr/local/bin/wipedisk
usr/sbin/crash-dump-manager
usr/sbin/dmemchk.sh
usr/sbin/fsync
usr/share/mtce/hwclock.service
usr/share/mtce/hwclock.sh
usr/share/starlingx/pmon.d/acpid.conf
usr/share/starlingx/pmon.d/fsmon.conf
usr/share/starlingx/pmon.d/hbsClient.conf
usr/share/starlingx/pmon.d/mtcClient.conf
usr/share/starlingx/pmon.d/mtcalarm.conf
usr/share/starlingx/pmon.d/mtclogd.conf
usr/share/starlingx/pmon.d/sssd.conf
usr/share/starlingx/pmon.d/sshd.conf
usr/share/starlingx/pmon.d/syslog-ng.conf