systemd tweaks for coredumps
This commit is contained in:
parent
01b151e128
commit
ca7f13b7dd
1 changed files with 6 additions and 1 deletions
|
|
@ -432,7 +432,12 @@ if [[ ! -f /root/.archmate/stage-7.done ]]; then
|
||||||
[[ -f /etc/iptables/simple_firewall.rules ]]; then
|
[[ -f /etc/iptables/simple_firewall.rules ]]; then
|
||||||
logact cp /etc/iptables/simple_firewall.rules /etc/iptables/iptables.rules
|
logact cp /etc/iptables/simple_firewall.rules /etc/iptables/iptables.rules
|
||||||
fi
|
fi
|
||||||
sed -i.bak 's/^#SystemMaxUse=/SystemMaxUse=50M/g' /etc/systemd/journald.conf
|
|
||||||
|
# systemd tweaks
|
||||||
|
sed -i.bak 's/^#SystemMaxUse=.*/SystemMaxUse=50M/g' /etc/systemd/journald.conf
|
||||||
|
sed -i.bak 's/^#Storage=.*/Storage=none/g' /etc/systemd/coredump.conf
|
||||||
|
echo 'kernel.core_pattern=' > /etc/sysctl.d/50-coredump.conf
|
||||||
|
|
||||||
logact systemctl enable lightdm.service
|
logact systemctl enable lightdm.service
|
||||||
logact systemctl enable NetworkManager.service
|
logact systemctl enable NetworkManager.service
|
||||||
logact systemctl enable cronie.service
|
logact systemctl enable cronie.service
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue