Timeline for Missing core dump file on RedHat 9
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17 at 17:38 | comment | added | rsaxvc | Sounds like TSG is running RHEL9/AlmaLinux9 rather than RH9. | |
| Oct 26, 2024 at 20:10 | vote | accept | TSG | ||
| Oct 26, 2024 at 20:10 | comment | added | TSG | Wow this is more complicated than I expected (general feeling about systemd). I think I'll close this as solved, and investigate the tmpfiles.d seperately | |
| Oct 26, 2024 at 18:59 | comment | added | telcoM |
/usr/lib/tmpfiles.d/systemd.conf tells systemd-tmpfiles to delete any core dump files in /var/lib/systemd/coredump/ older than 3 days, and systemd-tmp.conf will tell it to further remove some files from that directory on every boot. To override, copy the systemd.conf and systemd-tmp.conf from /usr/lib/tmpfiles.d/ to /etc/tmpfiles.d/, then remove or comment out the lines referring to /var/lib/systemd/coredump in the copies. The originals will be replaced each time the systemd RPM is updated, so only overriding the config files via /etc/tmpfiles.d makes the change persist.
|
|
| Oct 26, 2024 at 17:19 | comment | added | TSG | Getting very close based on your post - I updated my original question with more information. Only problem left is the core file disappears on reboot. | |
| Oct 26, 2024 at 9:41 | comment | added | meuh | The /etc/systemctl.d/ directory does not have to exist if no one wants to override the corresponding files in /usr/lib/sysctl.d/. Is RH9 the same as RHEL9? doc | |
| Oct 26, 2024 at 9:39 | history | edited | meuh | CC BY-SA 4.0 |
added 1325 characters in body
|
| Oct 25, 2024 at 23:53 | comment | added | TSG | The /var/lib/systemd/coredump/ has no files, my OS does not have a /etc/systemctl.d/ directory. I don't think this works for RH9 family | |
| Oct 25, 2024 at 20:59 | history | answered | meuh | CC BY-SA 4.0 |