Skip to content

Commit

Permalink
Merge pull request #12844 from ggbecker/fix-coredump-test-scenarios
Browse files Browse the repository at this point in the history
Add a script to ensure coredump configuration file exists
  • Loading branch information
Mab879 authored Jan 17, 2025
2 parents f58c0f2 + 9cf6dfd commit fe4e1df
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

COREDUMP_PATH=/etc/systemd/coredump.conf

if [ ! -f $COREDUMP_PATH ]; then
echo "[Coredump]" >> $COREDUMP_PATH
fi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

source common.sh

echo ProcessSizeMax=0 >> /etc/systemd/coredump.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#!/bin/bash

source common.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

source common.sh

echo ProcessSizeMax=2G >> /etc/systemd/coredump.conf

0 comments on commit fe4e1df

Please sign in to comment.